jwt

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvalidToken

func NewInvalidToken(text string) error

func Reset

func Reset()

func Sign

func Sign(payload map[string]interface{}) (token string, err error)

func SignUseKey

func SignUseKey(key string, payload map[string]interface{}) (token string, err error)

func Verify

func Verify(token string) (data map[string]interface{}, err error)

func VerifyUseKey

func VerifyUseKey(key string, token string) (data map[string]interface{}, err error)

Types

type InvalidToken

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

func (*InvalidToken) Error

func (e *InvalidToken) Error() string

type JWT

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

Jump to

Keyboard shortcuts

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