Documentation ¶
Index ¶
- func GenAccessToken(user *model.User, secret string, expiry int) (accessToken string, err error)
- func GenRefreshToken(user *model.User, secret string, expiry int) (refreshToken string, err error)
- func GetIDFromToken(requestToken string, secret string) (string, error)
- func HashPassword(password string) (string, error)
- func IsAuthorized(requestToken string, secret string) (bool, error)
- func VerifyPassword(password string, confirmpass string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAccessToken ¶
func GenRefreshToken ¶
func HashPassword ¶
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.