SupabaseS
Supabase2y ago
¹²

stripe

Error fetching user from Supabase: invalid claim: missing sub claim
Has anyone found a solution to this problem 'Error fetching user from Supabase: invalid claim: missing sub claim'. My jwt token is my supabasekey and decoded it's:

{

"iss": "supabase",

"ref": "<referenceid>",

"role": "anon",

"iat": 1695967576,

"exp": 2011543576

}

I'm using otp verification on my flutter project and getting the error calling my jwt here:

const { data: user, error: userError } = await supabase.auth.api.getUser(jwt);

Any help would be greatly appreciated!
Was this page helpful?