Documentation ¶
Index ¶
- func GenerateToken(ttl time.Duration, privateKey string, userId uuid.UUID) (string, error)
- func HashPassword(password string) (string, error)
- func HashRefreshToken(refreshToken string) (string, error)
- func ValidateToken(token string, publicKey string) (*jwt.Token, error)
- func VerifyPassword(encoded string, password string) (bool, error)
- func VerifyRefreshToken(encoded string, refreshToken string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func HashPassword ¶
func HashRefreshToken ¶
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.