Skip to content

parity(auth): add GetClaims with local JWKS verification [from supabase-js] #427

Description

@fresh55

There is no GetClaims. The only way to verify a token through the SDK is GetUser, a network call every time.

js and kotlin do it like this: decode the token, check exp, fetch /.well-known/jwks.json (cached 10 min) and verify the signature locally. Symmetric key (HS*) or no kid: fall back to getUser.

Task<GetClaimsResponse> GetClaims(string? jwt = null, GetClaimsOptions? options = null);

#262 depends on this.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions