Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACCESS_TOKEN = "access_token" ACCESS_TOKEN_TTL = 60 * 30 // sec REFRESH_TOKEN = "refresh_token" REFRESH_TOKEN_TTL = 60 * 60 * 24 //sec CURRENT_USER_ID = "curUserID" ERR_EMPTY_USER = "the current user id is empty" ERR_EMPTY_PARAM = "the param is empty" )
Variables ¶
This section is empty.
Functions ¶
func VerifyToken ¶
VerifyToken parses the signatured token with given secret key and validates the parsed token(claims).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.