tokens

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, key ed25519.PrivateKey,
	issuer v1.Token_Issuer,
	account string, expires time.Time) (string, *jwt.RegisteredClaims)

func Valid added in v0.0.24

func Valid(db *badger.DB, token string) (ok bool)

func ValidWithClaims added in v0.0.26

func ValidWithClaims(db *badger.DB, token string) (claims *jwt.RegisteredClaims, ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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