token

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	MintToken(ctx context.Context, u *user.User, scope map[string]*auth.Scope) (string, error)
	DismantleToken(ctx context.Context, token string) (*user.User, map[string]*auth.Scope, error)
}

Manager is the interface to implement to sign and verify tokens.

type ValidatedExpiry added in v3.9.0

type ValidatedExpiry interface {
	ValidatedExpiresAt(ctx context.Context, token string) (time.Time, error)
}

ValidatedExpiry is an optional interface a token Manager may implement to expose the validated expiration time of a previously minted token.

Directories

Path Synopsis
manager
jwt

Jump to

Keyboard shortcuts

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