Class JsonWebTokenProperty<TEST_ARGS, CREATION_ARGS, JWT_PROPS>Abstract

Properties of a JWT

Since

0.1.0

Type Parameters

  • TEST_ARGS

    The type of the arguments needed to test the token.

  • CREATION_ARGS

    The type of the arguments needed to create the token.

  • JWT_PROPS extends JsonWebTokenData

    The type of the token's data.

Hierarchy

Constructors

Methods

Constructors

Methods

  • Checks if the token is valid.

    Parameters

    • jwt: JWT_PROPS

      The JWT to check.

    • args: TEST_ARGS

      The arguments needed to check the token.

    Returns boolean

    True if the token is valid, false otherwise.

    Since

    0.1.0

  • Transforms the token.

    Parameters

    • jwt: JsonWebTokenData

      The JWT to transform.

    • args: CREATION_ARGS

      The arguments needed to transform the token.

    Returns JWT_PROPS

    The transformed token.

    Since

    0.1.0

Generated using TypeDoc