-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
16 lines (14 loc) · 857 Bytes
/
errors.go
File metadata and controls
16 lines (14 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package gojwt
import "errors"
var (
ErrUnableToParsePrivateKey = errors.New("unable to parse private key")
ErrUnableToParsePublicKey = errors.New("unable to parse public key")
ErrInvalidKeyType = errors.New("invalid key type")
ErrMissingTokenInContext = errors.New("missing token in context")
ErrMissingTokenClaimsInContext = errors.New("missing token claims in context")
ErrUnexpectedTokenTypeInContext = errors.New("unexpected token type in context")
ErrUnexpectedTokenClaimsTypeInContext = errors.New("unexpected token claims type in context")
ErrMissingTokenClaimsID = errors.New("missing token claims id")
ErrMissingTokenClaimsSubject = errors.New("missing token claims subject")
ErrEmptyToken = errors.New("empty token")
)