• Decode the body of a JWT. This helper may allow front-end applications to avoid a dependency on jsonwebtoken in many cases. Note that this should only be used for true JWTs. Opaque tokens will cause this to throw.

    Parameters

    • token: string

    Returns any