Function jwtDecode

  • Decode a JWT payload, this will not check for tampering so be careful

    Type Parameters

    • T

    Parameters

    • token: string

      JWT to decode

    Returns T

    JWT payload