Documentation
¶
Index ¶
- Variables
- func Create(ctx context.Context, inp *CreateInput) (int64, error)
- func CtxWithUser(ctx context.Context, u *AuthUser) context.Context
- func EmailResetPWD(email string)
- func RemoveSession(sID uint)
- func UpdatePWD(token, email, pwd, confirmPWD string) error
- func VerifyEmailAddress(ctx context.Context, token string) error
- type AuthUser
- type CreateInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateInpNil = errors.New("user: create input is nil") ErrWrongConfirmPwd = errors.New("user: confirm password does not match") )
View Source
var ( ErrInvalidCred = errors.New("invalid email or password") ErrAccountNotActive = errors.New("account is not active") ErrAccountLocked = errors.New("account is locked, please try after sometime") ErrUnexpected = errors.New("unexpected error has happened") )
View Source
var ( ErrExpiredToken = errors.New("expired token") ErrInvalidToken = errors.New("invalid token") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.