-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
33 lines (22 loc) 路 1.34 KB
/
Copy patherrors.go
File metadata and controls
33 lines (22 loc) 路 1.34 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
29
30
31
32
33
package apirouter
import "errors"
// ErrHeaderInvalid is when the header is missing or invalid
var ErrHeaderInvalid = errors.New("authorization header was mal-formatted or missing")
// ErrClaimsValidationFailed is when the claim's validation has failed
var ErrClaimsValidationFailed = errors.New("claims failed validation")
// ErrJWTInvalid is when the JWT payload is invalid
var ErrJWTInvalid = errors.New("jwt was invalid")
// ErrIssuerMismatch is when the issuer does not match the system issuer
var ErrIssuerMismatch = errors.New("issuer did not match")
// ErrInvalidSessionID is when the session id is invalid or missing
var ErrInvalidSessionID = errors.New("invalid session id detected")
// ErrInvalidUserID is when the user ID is invalid or missing
var ErrInvalidUserID = errors.New("invalid user id detected")
// ErrInvalidSigningMethod is when the signing method is invalid
var ErrInvalidSigningMethod = errors.New("invalid signing method")
// ErrUserIDTooLong is when the user ID exceeds the maximum length
var ErrUserIDTooLong = errors.New("user id exceeds maximum length")
// ErrIssuerTooLong is when the issuer exceeds the maximum length
var ErrIssuerTooLong = errors.New("issuer exceeds maximum length")
// ErrSessionIDTooLong is when the session ID exceeds the maximum length
var ErrSessionIDTooLong = errors.New("session id exceeds maximum length")