-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
| let jwt = try JWT<ClaimType>(jwtString: jwtString, verifier: jwtVerifier) |
According to the JWT documentation, if the constructor fails, it could also be that the signature was wrong.
Decode a JWT from a JWT string
A JWT struct can be initialized from a JWT string. If a JWTVerifier is provided it will be used to verify the signature before initialization
Whereas the validateClaims function only validates the claims on the JWT (e.g. nbf or exp) and does nothing regarding the signature:
| guard validationResult == .success else { |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels