Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPasswordValid ¶
Types ¶
type BycryptProvider ¶
type BycryptProvider interface { Hash(password string) (string, error) CompareHashAndPassword(hash, password string) error }
func NewBcryptProvider ¶
func NewBcryptProvider(cost int) BycryptProvider
type JwtProvider ¶
type JwtProvider interface { Sign(userID int64) (string, error) Parse(tokenString string) (*jwtClaims, error) }
func NewJwtProvider ¶
func NewJwtProvider(jwtConfig config.JwtConfig) JwtProvider
Click to show internal directories.
Click to hide internal directories.