convex-auth v2.0.4
What’s changed
- Remove module-scope JWT private-key/JWKS caching so rotated keys take effect immediately and warm processes cannot sign with stale material.
- Add the missing
convex/auth.config.tsnative Convex auth provider wiring in the OAuth demo. - Share the pending 2FA challenge token through
ConvexAuthProvidercontext so the sign-in page and reusable verification form stay in sync. - Improve
toErrorinconvex-auth-client.tsto preserve string/object messages. - Increase JWT
iatfuture-clock skew leeway. - Update
mintOAuthStatefor the newgetJwtPrivateKeyreturn shape and include the key id in the header. - Clean up demo lint warnings and harden forgot/reset/verify-email response handling.
Verification
pnpm run check,typecheck,build,test(1275 tests),lint,lint:convex,scan:secretsall pass locally.convex-auth checkandconvex-auth preflightpass forexamples/oauth.- Browser (Safari MCP): 2FA TOTP sign-in, backup codes, sessions, API keys, service principals + verify-as-session, webhooks, audit, and preflight UI all verified.