Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewUser ¶
func CreateNewUser(user *User)
func DeleteUser ¶
func DeleteUser(user *User)
func GenerateNewToken ¶
GenerateNewToken will generate jwt token for given user id
Types ¶
type AuthContext ¶
AuthContext is authentication information
func GetAuthContextByID ¶
func GetAuthContextByID(authContextID string) *AuthContext
GetAuthContextByID will check token existence in redis and valid
type Token ¶
type Token struct { AuthContextID string `json:"auth_context_id"` *jwt.StandardClaims }
Token is play load part of JWT token
func ParseTokenString ¶
ParseTokenString will parse given token and return Token struct
Click to show internal directories.
Click to hide internal directories.