Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( MsgStatusOK = []byte("{\"status\": \"OK\"}") MsgUserNotFound = []byte("{\"error\": \"user not found\"}") MsgInvalidDataFormat = []byte("{\"error\": \"data format error\"}") MsgCheckPasswordError = []byte("{\"error\": \"check password error\"}") MsgInvalidPassword = []byte("{\"error\": \"password is invalid\"}") MsgInternalError = []byte("{\"error\": \"internal error\"}") MsgRefreshTokenEmpty = []byte("{\"error\": \"refresh token is empty\"}") MsgInvalidRefreshToken = []byte("{\"error\": \"refresh token is invalid\"}") )
JSON messages
Functions ¶
func RegisterSubrouter ¶
func RegisterSubrouter(base *mux.Router, path string, accountProvider account.AccountProvider, cfg config.JWTConfig) error
RegisterSubrouter register subrouter for work with token of user
Types ¶
type Credential ¶
type ParsedToken ¶
type RefreshToken ¶
Click to show internal directories.
Click to hide internal directories.