jwt

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingToken for http.
	ErrMissingToken = errors.New("authorization token is not provided")
)

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// Generate a new token or error.
	Generate(ctx context.Context) ([]byte, error)
}

Generator allows the implementation of different types generators.

type Verifier

type Verifier interface {
	// Verify a token or error.
	Verify(ctx context.Context, token []byte) (*jwt.Token, error)
}

Verifier allows the implementation of different types of verifiers.

Jump to

Keyboard shortcuts

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