jwt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenExpiredTime = 300
)

constants jwt

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(payload interface{}) string

GenerateToken generate jwt token

func JWT

func JWT() gin.HandlerFunc

JWT middleware

func ValidateToken

func ValidateToken(jwtToken string) (map[string]interface{}, error)

ValidateToken validate jwt token

Types

This section is empty.

Jump to

Keyboard shortcuts

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