Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JwtTokenClaims ¶
type JwtTokenClaims struct { jwt.StandardClaims Name string `json:"name"` Response NamespacedClaims `json:"https://hasura.io/jwt/claims"` }
JwtTokenClaims is the token claims to be added to the token.
type NamespacedClaims ¶
type NamespacedClaims struct { AllowedRoles []string `json:"x-hasura-allowed-roles"` DefaultRole string `json:"x-hasura-default-role"` UserID string `json:"x-hasura-user-id"` }
NamespacedClaims are the claims handled within the hasura.io namespace.
Click to show internal directories.
Click to hide internal directories.