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

PropertyTypeRequiredNotes
https://hasura.io/jwt/claims.x-hasura-auth-elevatedstring✔️
https://hasura.io/jwt/claims.x-hasura-user-is-anonymousstring✔️
https://hasura.io/jwt/claims.x-hasura-user-idstring✔️
https://hasura.io/jwt/claims.x-hasura-default-rolestring✔️
https://hasura.io/jwt/claims.x-hasura-allowed-rolesArray<string>✔️