jwt

package
v0.0.0-...-b5b8e50 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Secret string

Functions

func GenerateToken

func GenerateToken(user model.User) (string, error)

Types

type Claims

type Claims struct {
	Email string
	Name  string
	jwt.StandardClaims
}

func ParseToken

func ParseToken(token string) (*Claims, error)

Jump to

Keyboard shortcuts

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