Access Tokens#

Novaza Live uses short-lived access tokens to authorize participants into rooms. Your application mints a token for each user, the user presents that token to the Live server, and the server grants exactly the permissions encoded in the token. Users never authenticate directly against the Live server.

Token Format#

Tokens are JWTs signed with your workspace’s Live API key. Each token carries:

ClaimPurpose
subThe participant’s identifier in your system
nameDisplay name shown to other participants
roomThe room the token is valid for
permissionsWhat the participant can do (publish, subscribe, moderate, share)
metadataArbitrary JSON attached to the participant
expExpiry — typically 5 minutes from now

Minting a Token#

Tokens are minted server-side. Never ship the API key to the browser.

import { AccessToken } from '@novaza/live-sdk';

const token = new AccessToken(API_KEY, API_SECRET, {
  identity: 'user-42',
  name: 'Alice',
  ttl: 300, // seconds
});
token.addGrant({
  room: 'daily-standup',
  canPublish: true,
  canSubscribe: true,
  canPublishData: true,
});
const jwt = token.toJwt();

Pass the JWT to your front end and give it to the Live SDK when connecting.

Permissions#

GrantAllows
canPublishSend audio / video to the room
canSubscribeReceive other participants’ streams
canPublishDataSend in-room chat / data messages
canPublishSourcesRestrict to specific tracks (camera, microphone, screen_share)
roomAdminMute participants, end the room, change settings
roomCreateCreate rooms on demand

Omitting a grant denies the capability. Use the most restrictive set that still lets the user do their job.

Rotating the API Key#

Workspace owners can rotate the Live API key from Settings → Live → API keys. Rotating invalidates all existing tokens immediately — issue new ones before rotating in production.

Debugging#

The Live dashboard shows the decoded claims of every connected participant. If a connection is rejected, the dashboard explains which claim failed (expired, wrong room, missing grant) so you can fix the minting logic quickly.

© 2026 Novaza. All rights reserved.