Skip to content

Function: verifyJoinToken() ​

ts
function verifyJoinToken(
   secret, 
   token, 
   scope?
): Promise<VerifiedJoinToken | null>;

Defined in: server/tokens.ts:97

Check a token. Returns what it says, or null if it is malformed, signed with another secret, expired, or scoped to a different room or queue than scope.

Parameters ​

ParameterType
secretstring
tokenstring
scope?string

Returns ​

Promise<VerifiedJoinToken | null>

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.