Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BcryptManager ¶
type BcryptManager struct { }
func (*BcryptManager) CompareHashedPassword ¶
func (bm *BcryptManager) CompareHashedPassword(hashedPassword string, password string) (bool, error)
func (*BcryptManager) HashPassword ¶
func (bm *BcryptManager) HashPassword(password string) (string, error)
type IBcryptManager ¶
type IJwtManager ¶
type JwtManager ¶
type JwtManager struct {
// contains filtered or unexported fields
}
func NewJwtManager ¶
func NewJwtManager(secret string) *JwtManager
func (*JwtManager) GenerateToken ¶
func (*JwtManager) ValidateToken ¶
func (jm *JwtManager) ValidateToken(token string) (userId string, err error)
Click to show internal directories.
Click to hide internal directories.