Files
commerce/util/jwt/errors.go
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

15 lines
672 B
Go

package jwt
import "errors"
var (
MalformedToken = errors.New("Token is malformed")
InvalidNumberOfSegments = errors.New("Token contains an invalid number of segments")
UnavailableSigningMethod = errors.New("Token is unverifiable, signing method is unavailable")
UnspecifiedSigningMethod = errors.New("Token is unverifiable, signing method is unspecified")
TokenIsExpired = errors.New("Token is expired")
TokenIsNotValidYet = errors.New("Token is not valid yet")
TokenCouldNotBeDecoded = errors.New("Token could not be decoded")
SigningAlgorithmIncorrect = errors.New("Algorithm in header does not match signing algorithm")
)