jwt

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

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

func New

func New(secretKey string) *JWT

func (*JWT) Generate

func (j *JWT) Generate(payload map[string]any) (string, error)

func (*JWT) Validate

func (j *JWT) Validate(signature string) (jwt.MapClaims, error)

type Payload

type Payload = map[string]any

Jump to

Keyboard shortcuts

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