Documentation ¶
Index ¶
Constants ¶
View Source
const ( HEADER_CLIENT_NAME = "x-client-role" HEADER_USER_ID = "x-user-id" HEADER_IS_LOGGED_IN = "x-client-is-logged-in" ORIGINAL_TOKEN = "x-jwt-token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppClaims ¶
type AppClaims struct { ClientID string `json:"cid"` UserID string `json:"uid"` Role string `json:"role"` jwt.Claims }
Claims
func GetClaimsFromToken ¶
GetClaimsFromToken gets AppClaims from token
func NewAppClaims ¶
NewAppClaims creates new app claims
Click to show internal directories.
Click to hide internal directories.