jwt

package
v0.0.0-...-bf7cd7d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 5 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 {
	Storage *storage.Storage
	Common  *common.Common
}

func NewJWT

func NewJWT(c *common.Common, sto *storage.Storage) *JWT

func (*JWT) CheckToken

func (j *JWT) CheckToken(tokenStr string) error

func (*JWT) NewToken

func (j *JWT) NewToken(id string) (string, error)

type MyClaim

type MyClaim struct {
	UserID string `json:"user_id"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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