15 lines
533 B
Go
15 lines
533 B
Go
package errors
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNotFound = errors.New("not found")
|
|
ErrUserNotFound = errors.New("user not found")
|
|
ErrInvalidEmail = errors.New("invalid email")
|
|
ErrInvalidCredentials = errors.New("invalid credentials: unauthorized")
|
|
ErrAlreadyVerified = errors.New("user is already verified")
|
|
ErrTokenNotFound = errors.New("verification token not found")
|
|
ErrTokenNotSet = errors.New("verification token has not been set")
|
|
ErrNoData = errors.New("no data provided")
|
|
)
|