tsndr / cloudflare-worker-jwt

A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.
MIT License
680 stars 55 forks source link

Add ignore options for verify #10

Closed ericpalakovichcarr closed 2 years ago

ericpalakovichcarr commented 2 years ago

Update the verify method's options param to accept two new options, ignoreExpiration and ignoreNotBefore. They will cause the verify method to skip verifying the exp and nbf fields respectively.

NOTE: Ignore options match the options in the jsonwebtoken package.