Skip to content

Interface: MintOptions ​

Properties ​

PropertyTypeDescription
apiKeystring-
apiSecretstring-
grantsGrants-
identitystringWho the token is for: your string, such as app:user:123. Keep it to 200 characters, the most the control API's routes take for an identity.
jti?string-
metadata?Record<string, unknown>Your JSON, at most 4 096 bytes as UTF-8, kept with the session and never read.
name?stringThe display name others in a room see. Keep it to 120 characters: POST /v1/tokens refuses a longer one, and a token minted here is not checked, so a longer one reaches every participant whole.
now?() => numberTest seam. Never set in production.
ref?stringYour own reference for the person, at most 120 characters, kept with the session and never read.
ttlSec?numberSeconds, 1–600. Default 300. A connect needs only a moment, and the session it opens outlives the token.

Talkline documentation