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, JWTAlgorithm[] algs)
    verify
  2. Token verify(string encodedToken)

Parameters

encodedToken string

the encoded token

secret string

the secret key used to sign the token

Return Value

Type: Token

a decoded Token

Meta