13 lines
433 B
Go
13 lines
433 B
Go
package auth
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrInvalidCredentials = errors.New("invalid credentials")
|
|
ErrUserExists = errors.New("user already exists")
|
|
ErrUserNotFound = errors.New("user not found")
|
|
ErrPasswordMismatch = errors.New("passwords do not match")
|
|
ErrCredentialsEmpty = errors.New("username and password cannot be empty")
|
|
ErrPasswordTooShort = errors.New("password must be at least 6 characters long")
|
|
)
|