Documentation
¶
Index ¶
Constants ¶
View Source
const AuthUserKey = "authUser"
Variables ¶
View Source
var ( ErrEmptyAuthHeader = apperr.New("empty_auth_header") ErrInvalidAuthHeader = apperr.New("invalid_auth_header") ErrEmptyToken = apperr.New("empty_token") ErrInvalidToken = apperr.New("invalid_token") ErrTokenParseError = apperr.New("token_parse_error") ErrErrorToSigningString = apperr.New("error_to_signing_string") )
Functions ¶
Types ¶
type TokenClaims ¶ added in v1.0.42
type TokenClaims struct {
Id int `json:"id"`
Role string `json:"role"`
DepartmentId *int `json:"department_id"`
jwt.RegisteredClaims
}
Click to show internal directories.
Click to hide internal directories.