linstrom/auth-new/errors.go
2025-03-31 08:07:16 +02:00

14 lines
574 B
Go

package auth
import "errors"
var (
// The provided authentication method is not known to the server
ErrUnknownAuthMethod = errors.New("unknown authentication method")
// The user hasn't setup the provided authentication method
ErrUnsupportedAuthMethod = errors.New("authentication method not supported for this user")
ErrInvalidCombination = errors.New("invalid account and token combination")
ErrProcessTimeout = errors.New("authentication process timed out")
// A user may not login, for whatever reason
ErrCantLogin = errors.New("user can't login")
)