TokenSourceJwt extension

on

Properties

jwtPayload → LiveKitJwtPayload?

Available on TokenSourceResponse, provided by the TokenSourceJwt extension

Decode the participant token and return the parsed payload, if valid.
no setter

Methods

dispatchesAgent() → bool

Available on TokenSourceResponse, provided by the TokenSourceJwt extension

Returns true when the token's room configuration dispatches at least one agent.
hasValidToken({Duration tolerance = const Duration(seconds: 60), DateTime? currentTime}) → bool

Available on TokenSourceResponse, provided by the TokenSourceJwt extension

Returns true when the participant token is valid (not expired and past its not-before time).