forked from BTBurke/caddy-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
16 lines (13 loc) · 728 Bytes
/
Copy patherrors.go
File metadata and controls
16 lines (13 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package jwt
import "errors"
var (
errUnknownRuleType = errors.New(`unknown rule type`)
errNoTokenFound = errors.New(`no token found`)
errTokenLengthIsZero = errors.New(`token length is zero`)
errEmptyPublicKeyFilename = errors.New(`empty filename for public key provided`)
errEmptySecretFilename = errors.New(`empty filename for secret provided`)
errNoKeybackend = errors.New(`there is no keybackend available`)
errBothHMACRSATokensOnTheSameSite = errors.New(`cannot configure both HMAC and RSA/ECDSA tokens on the same site`)
// Nested input must be a map or slice
errNotValidInput = errors.New("Not a valid input: map or slice")
)