JWTClaims
Basic structure of a JWT that contains the default Hasura namespace.
JWTClaims
Basic structure of a JWT that contains the default Hasura namespace.
@see
https://hasura.io/docs/1.0/graphql/core/auth/authentication/jwt.html#the-spec
Parameters
sub optional string
iat optional number
exp optional number
iss optional string
https://hasura.io/jwt/claims required JWTHasuraClaims
Property | Type | Required | Notes |
---|---|---|---|
https://hasura.io/jwt/claims.x-hasura-auth-elevated | string | ✔️ | |
https://hasura.io/jwt/claims.x-hasura-user-is-anonymous | string | ✔️ | |
https://hasura.io/jwt/claims.x-hasura-user-id | string | ✔️ | |
https://hasura.io/jwt/claims.x-hasura-default-role | string | ✔️ | |
https://hasura.io/jwt/claims.x-hasura-allowed-roles | Array<string> | ✔️ |