C#: Get user claims from verified JWT

Verifies an access token and returns its claims.

Examples

Get the claims of the current session

var response = await supabase.Auth.GetClaimsAsync();
var userId = response.Claims.Sub;

Get the claims of a given token

var response = await supabase.Auth.GetClaimsAsync(jwt, new GetClaimsOptions { AllowExpired = true });