Documentation ¶
Index ¶
- func CreateAccessToken(user *domain.User, secret string, expiry int) (accessToken string, err error)
- func CreateRefreshToken(user *domain.User, secret string, expiry int) (refreshToken string, err error)
- func ExtractSomeFromToken(requestToken string, secret string, getWhat string) (string, error)
- func IsAuthorized(requestToken string, secret string) (bool, error)
- func IsAuthorizedAdmin(requestToken string, secret string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccessToken ¶
func CreateRefreshToken ¶
func ExtractSomeFromToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.