Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExist error = errors.New("User already exist")
ErrAlreadyExist should have a comment.
View Source
var ErrInvalidCredential error = errors.New("Invalid Credentials")
ErrInvalidCredential should have a comment.
View Source
var ErrInvalidToken error = errors.New("Invalid Token")
ErrInvalidToken should have a comment.
View Source
var ErrNotExist error = errors.New("User not exist")
ErrNotExist should have a comment.
Functions ¶
Types ¶
type JWTClaims ¶
type JWTClaims struct { ID int32 `json:"id"` Username string `json:"username"` FirstName string `json:"firstName"` LastName string `json:"lastName"` RoleID int32 `json:"roleId"` jwt.StandardClaims }
JWTClaims should have a comment.
func ParseToken ¶
ParseToken should have a comment.
type UserToken ¶
UserToken should have a comment.
func RefreshToken ¶
RefreshToken should have a comment.
Click to show internal directories.
Click to hide internal directories.