jwt

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(uid string, username string) (token string, err error)

GenerateToken generate get token for uid

Types

type Claims

type Claims struct {
	jwt.StandardClaims
	UID      string
	UserName string
}

Claims Jwt token

func ParseToken

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

ParseToken parse token is valid

Jump to

Keyboard shortcuts

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