Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountID ¶
GetAccountID retrieves the account id for the current user from the token
func GetAccountName ¶
GetAccountName retrieves the account name for the current user
func IsTokenValid ¶
IsTokenValid checks if the token is still valid
Types ¶
type ClaimSet ¶
type ClaimSet struct {
Subject string `json:"sub"`
Admin bool `json:"admin"`
IssuedAt int64 `json:"iat"`
Expiration int64 `json:"exp"`
Hasura Hasura `json:"https://hasura.io/jwt/claims"`
}
ClaimSet is the auth token claim set type
Click to show internal directories.
Click to hide internal directories.