Type alias JsonWebTokenTester<T>

JsonWebTokenTester<T>: ((token) => T)

Type Parameters

  • T

    The type of the token's data.

Type declaration

    • (token): T
    • The function that will be called to verify the json web token.

      Parameters

      Returns T

      The data the tokn should contain.

      Throws

      Throw an error if the token is invalid.

      Since

      0.1.0

Generated using TypeDoc