Enable user-level authentication and authorization with JWT tokens
Authorization
header. The format is Bearer <key>:<jwt>
where <key>
is the project key (starts with sk-...
) and <jwt>
is the signed JWT token.
iat
), not before (nbf
) or expiration (exp
) claims, they will be checked to ensure the token is valid.sub
(standard JWT subject claim)user_id
(custom user ID claim)userId
(alternative user ID claim)tier
claim to control access based on user subscription level).
Authorization
header as described above. The format is Bearer <key>:<jwt>
, where <key>
is your Datawizz project key and <jwt>
is the Supabase JWT token.jose
library integration, the system supports multiple JWT signing algorithms: