Token lifetime — seconds (number) or a duration string like "15m", "24h".
Build a server-side management/API token instead of a participant token.
Scope the token to a specific room (roomId claim).
Add one or more permission grants.
Attach an arbitrary custom claim.
Set the participantId claim.
Sign and return the JWT.
Fluent builder for VideoSDK access tokens.
By default it builds a participant token (for joining a room). Call AccessTokenBuilder.forApi for a server-side management token.
Example