errors

package
v2.280.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidMatch is returned when a token comparison fails to match (for example, signature mismatch).
	ErrInvalidMatch = errors.New("token: invalid match")

	// ErrInvalidIssuer is returned when a token issuer claim does not match the expected issuer.
	ErrInvalidIssuer = errors.New("token: invalid issuer")

	// ErrInvalidAudience is returned when a token audience claim does not match the expected audience.
	ErrInvalidAudience = errors.New("token: invalid audience")

	// ErrInvalidAlgorithm is returned when a token is signed with an unexpected algorithm.
	ErrInvalidAlgorithm = errors.New("token: invalid algorithm")

	// ErrInvalidKeyID is returned when a token key id (kid) header is missing or does not match the expected key id.
	ErrInvalidKeyID = errors.New("token: invalid key id")

	// ErrInvalidTime is returned when a token is not valid for the current time (for example expired or not yet valid).
	ErrInvalidTime = errors.New("token: invalid time")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL