Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenGenerator ¶
type AuthTokenGenerator struct { }
func (AuthTokenGenerator) GenerateToken ¶
func (t AuthTokenGenerator) GenerateToken(userID string) (string, error)
func (AuthTokenGenerator) ParseToken ¶
func (t AuthTokenGenerator) ParseToken(accessToken string) (string, error)
type PasswordEncryptor ¶
type PasswordEncryptorBcrypt ¶
type PasswordEncryptorBcrypt struct { }
func NewPasswordEncryptor ¶
func NewPasswordEncryptor() PasswordEncryptorBcrypt
func (PasswordEncryptorBcrypt) CompareHashAndPassword ¶
func (p PasswordEncryptorBcrypt) CompareHashAndPassword(hash, password string) bool
CompareWithHash ...
func (PasswordEncryptorBcrypt) EncryptString ¶
func (p PasswordEncryptorBcrypt) EncryptString(s string) (string, error)
Click to show internal directories.
Click to hide internal directories.