tokenprovider

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenProvider

func NewTokenProvider(
	tokenGenerator token.Generator,
	tokenStore TokenStore,
	userProvider security.UserProvider,
	logger zerolog.Logger,
) security.TokenProvider

Types

type TokenStore

type TokenStore interface {
	Exists(ctx context.Context, id string) (bool, error)
	Access(ctx context.Context, id string) error
}

Jump to

Keyboard shortcuts

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