Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTService ¶
func (*JWTService) GenerateToken ¶
func (s *JWTService) GenerateToken(id string) (string, error)
func (*JWTService) ParseToken ¶
func (s *JWTService) ParseToken(accessToken string) (string, error)
type PasswordManager ¶
type PasswordManager struct {
Salt Salt
}
func (*PasswordManager) HashPassword ¶
func (mgr *PasswordManager) HashPassword(password string) string
func (*PasswordManager) VerifyHashedPassword ¶
func (mgr *PasswordManager) VerifyHashedPassword(password, expectedHash string) bool
Click to show internal directories.
Click to hide internal directories.