tkn

package
v0.0.0-...-1047655 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSignatureInvalid = "invalid signaute"
)

Functions

func New

func New(key []byte) port.Token

Types

type TokenAdaptor

type TokenAdaptor struct {
	// contains filtered or unexported fields
}

func (*TokenAdaptor) GenerateJWT

func (a *TokenAdaptor) GenerateJWT(id string, email string) (string, error)

func (*TokenAdaptor) VerifyJWT

func (a *TokenAdaptor) VerifyJWT(tkn string) bool

Jump to

Keyboard shortcuts

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