jwt

package
v0.0.0-...-0575462 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenToken

func GenToken(data PayloadData) (string, error)

Types

type MyClaims

type MyClaims struct {
	PayloadData
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenString string) (*MyClaims, error)

type PayloadData

type PayloadData struct {
	UserID  int64  `json:"user_id"`
	Account string `json:"account"`
}

Jump to

Keyboard shortcuts

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