jwt

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims added in v1.0.9

type Claims = jwt.RegisteredClaims

type JWT

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

func NewJWT

func NewJWT(key string, ttl time.Duration) *JWT

func (*JWT) Generate

func (r *JWT) Generate(claims *Claims) (string, error)

func (*JWT) Parse

func (r *JWT) Parse(token string) (*Claims, error)

Jump to

Keyboard shortcuts

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