jwt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// PrivateKey       *rsa.PrivateKey
	// PublicKey        *rsa.PublicKey
	Secret     string
	Audience   string
	Issuer     string
	Expiration time.Duration
}

type Jwt

type Jwt interface {
	GenerateToken(string) (string, error)
	ParseToken(string) (string, error)
}

func New

func New(config Config) Jwt

Jump to

Keyboard shortcuts

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