Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Function: verifyJWT()

@roomful/relay


@roomful/relay / verifyJWT

verifyJWT(token, secret): RelayJwtPayload

Defined in: packages/relay/src/auth.ts:107

Verifies an HS256 JWT for relay authorization.

string

The compact JWT string to verify.

string

The shared secret used to verify the signature.

RelayJwtPayload

The decoded relay JWT payload.

When the token is malformed, expired, or invalid.