jwtoken

package
v0.0.0-...-fea8a0b Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelUserAccessToken

func DelUserAccessToken(tk string) (err error)

func GetCachedAccessToken

func GetCachedAccessToken(subject *Subject) (ret string, err error)

func MakeAccessToken

func MakeAccessToken(subject *Subject) (ret string, err error)

func ParseToken

func ParseToken(tk string) (c *jwt.StandardClaims, err error)

Types

type Subject

type Subject struct {
	ID   string `json:"id"`
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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