Skip to content

feat(gotrue): add GetClaimsAsync with local JWKS verification - #439

Open
fresh55 wants to merge 2 commits into
supabase:masterfrom
fresh55:feat/gotrue-get-claims
Open

fresh55 wants to merge 2 commits into
supabase:masterfrom
fresh55:feat/gotrue-get-claims

Conversation

@fresh55

@fresh55 fresh55 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

closes #427, closes #262

verifies the token against /.well-known/jwks.json locally when the key is asymmetric, cached ten minutes, and falls back to /user otherwise, same as auth-js getClaims. expired, malformed and badly signed tokens throw GotrueException with the new Reason.InvalidJwt, which is what the typed error in #262 maps to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant