jwt

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 Config added in v0.7.0

type Config struct {
	Secret []byte
}

type JWT

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

func New

func New(c Config) *JWT

func (*JWT) NewWithClaims

func (j *JWT) NewWithClaims(claims map[string]any) (string, error)

func (*JWT) Parse

func (j *JWT) Parse(tokenString string) (map[string]any, error)

Jump to

Keyboard shortcuts

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