Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAccessToken ¶
ParseAccessToken parses token and verifies its signature. If access token is the valid returns user ID and tokening expiration time. Otherwise returns pair "user error" and "error of working".
Types ¶
type AccessToken ¶
type AccessToken string
AccessToken is a access token.
func NewAccessToken ¶
func NewAccessToken(user ss.UserID, expirationTime int64, ) (AccessToken, error)
NewAccessToken creates new access token.
Click to show internal directories.
Click to hide internal directories.