Documentation ¶
Index ¶
- func CheckAccessToken(accessToken string) error
- func LoginForAuthorizationCode(login, password string) (code string, err error)
- func RefreshAccessToken(refreshToken string) (accessToken string, err error)
- func RegisterUser(login, password string) (err error)
- func RevokeRefreshToken(refreshToken string) (err error)
- func UseAuthorizationCode(code string) (accessToken string, validUntil time.Time, refreshToken string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessToken ¶
CheckAccessToken checks if access token is valid
func LoginForAuthorizationCode ¶
LoginForAuthorizationCode Returns auth code for given credentials
func RefreshAccessToken ¶
RefreshAccessToken refreshes access token
func RegisterUser ¶
RegisterUser registers new user
func RevokeRefreshToken ¶
RevokeRefreshToken revokes refresh token and corresponding access token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.