- Build for V8 isolates first.
- Make it isomorphic to work across all modern JS runtimes.
- Use options injection for all keys and settings.
- Support multiple CLERK_API_KEY for multiple instance REST access.
- Align JWT key resolution algorithm across all environments (Function param > Environment variable > JWKS from API).
- Tested automatically across different runtimes (Node, CF Workers, Vercel Edge middleware.)
- Clean up Clerk interstitial logic.
- Refactor the Rest Client API to return
{data, errors}
instead of throwing errors. - Export a generic verifyToken for Clerk JWTs verification.
- Align AuthData interface for SSR.
- Export CJS and ESM.
- [] Build test coverage
- [] Run suite in Deno runtime
- [] Custom claim validation in verifyToken for JWT templates
- [] Replace QUnit with Mocha in a browser-like setup using ESM.
- [] Replace Sinon with https://mswjs.io
- [] Add tribute to https://github.com/cfworker/cfworker/tree/main/packages/jwt
- [] Make test suite files load dynamically so that we don't need to manually update
suites.ts
every time we add a new test file. - [] Dynamic resource parsing to remove the deserializer