-
-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
The docs list claims that are "always present in Supabase JWTs". While some like iss
and sub
are present in the RequiredClaims
object, email
, phone
, and is_anonymous
are not (see below). This interferes with type checking e.g. of claims.email
within the object returned by supabase.auth.getClaims()
.
Lines 1273 to 1286 in 420930e
export type RequiredClaims = { | |
iss: string | |
sub: string | |
aud: string | string[] | |
exp: number | |
iat: number | |
role: string | |
aal: AuthenticatorAssuranceLevels | |
session_id: string | |
} | |
export type JwtPayload = RequiredClaims & { | |
[key: string]: any | |
} |
To Reproduce
See above.
Expected behavior
All required claims listed in the docs are present.
Screenshots
N/A
System information
N/A
Additional context
N/A
patsaas
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working