jwt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Refresh tokenType = "refresh"
	Access  tokenType = "access"
)

Functions

This section is empty.

Types

type Tokenizer

type Tokenizer interface {
	Sign(fields map[string]interface{}, tokenType tokenType) (string, error)
	Verify(token string) bool
	RegenerateToken(token string) string
}

func New

func New(refreshSecret, accessSecret string, refreshTokenDuration, accessTokenDuration time.Duration) Tokenizer

Jump to

Keyboard shortcuts

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