verify

verifies the tokens is valid, using the algorithm given instead of the alg field in the claims

  1. Token verify(string encodedToken, string secret)
  2. Token verify(string encodedToken, string secret, JWTAlgorithm alg)
  3. Token verify(string encodedToken)

Parameters

encodedToken string

the encoded token

secret string

the secret key used to sign the token

alg JWTAlgorithm

the algorithm to be used to verify the token

Return Value

Type: Token

a decoded Token

Meta