@videosdk.live/server-sdk
    Preparing search index...

    Function decodeToken

    • Decode (without verifying) the payload of a JWT. Useful for reading exp to decide whether a cached token needs to be regenerated.

      Parameters

      • token: string

      Returns DecodedTokenPayload | null

      the decoded payload, or null if the token is malformed.