jwt

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(req CheckTokenRequest, out interface{}) (err error)

CheckToken

func GetToken

func GetToken(req TokenRequest) (string, error)

Types

type CheckTokenRequest

type CheckTokenRequest struct {
	TokenStr   string
	SigningKey string
}

type TokenRequest

type TokenRequest struct {
	Expire     int
	SigningKey string
	Parms      map[string]interface{}
}

Jump to

Keyboard shortcuts

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