token

package
v0.0.0-...-7fb72bf Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SignKey []byte

Functions

func New

func New(userID string) (string, error)

Types

type Claim

type Claim struct {
	UserID string `json:"userId"`
	jwt.StandardClaims
}

func Parse

func Parse(token string) (*Claim, error)

Jump to

Keyboard shortcuts

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