Documentation
¶
Index ¶
- func CheckPassword(hashed, plain string) bool
- func GenerateAccessToken(userID int64, email string) (string, time.Time, error)
- func HashPassword(plain string) (string, error)
- func HashRefreshToken(plain string) string
- func NewAccessToken(userID int64, email string, ttl time.Duration) (string, error)
- func NewRefreshToken() (plain string, hash string, expiresAt time.Time, err error)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func GenerateAccessToken ¶
func HashPassword ¶
func HashRefreshToken ¶
func NewAccessToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.