tsndr / cloudflare-worker-jwt

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

adding new errrors #20

Closed he-yang closed 2 years ago

he-yang commented 2 years ago

would it be possible to split errors:

  1. token expired
  2. token invalid.

It would be important to throw error informing that this token verification passed by it is expired.