token

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 12

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.

Directories

Path Synopsis
manager
jwt

Jump to

Keyboard shortcuts

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