-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy patherrors.go
More file actions
28 lines (26 loc) · 1.5 KB
/
Copy patherrors.go
File metadata and controls
28 lines (26 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package auth
import "errors"
var (
ErrNotInitialized = errors.New("auth package not initialized")
ErrDatabaseUnavailable = errors.New("database connection unavailable")
ErrInvalidToken = errors.New("invalid jwt token")
ErrTokenExpired = errors.New("jwt token expired")
ErrOTPExpired = errors.New("otp expired")
ErrInvalidOTP = errors.New("invalid otp code")
ErrUserNotFound = errors.New("user not found")
ErrInvalidCredentials = errors.New("invalid credentials")
ErrSMTPNotInitialized = errors.New("smtp not initialized")
ErrJWTSecretMissing = errors.New("jwt secret not initialized")
ErrInvalidInput = errors.New("invalid input provided")
ErrInvalidEmail = errors.New("invalid email format")
ErrEmptyInput = errors.New("required field cannot be empty")
ErrRateLimitExceeded = errors.New("rate limit exceeded")
ErrRefreshTokenInvalid = errors.New("invalid refresh token")
ErrRefreshTokenRevoked = errors.New("refresh token has been revoked")
ErrRefreshTokenExpired = errors.New("refresh token has expired")
ErrOAuthNotInitialized = errors.New("oauth not initialized")
ErrOAuthExchangeFailed = errors.New("failed to exchange oauth code")
ErrOAuthProfileFetchFailed = errors.New("failed to fetch user profile from provider")
ErrRedisUnavailable = errors.New("redis connection unavailable")
ErrRateLimitBackendDown = errors.New("rate limit backend is down")
)