Skip to content

is compactVerify supposed to throw JWTExpired? #161

Answered by panva
jayenashar asked this question in Q&A
Discussion options

You must be logged in to vote

is compactVerify supposed to throw JWTExpired?

No. compactVerify is not processing the payload of a token at all, it's a generic JWS utility. Maybe you should use the module targetted at validating JWTs instead of one purely for JWS.

jose/jwt/verify (Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the JWT Claims Set.) not jose/jws/compact/verify (Verifies the signature and format of and afterwards decodes the Compact JWS.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jayenashar
Comment options

Answer selected by panva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants