middleware

package
v0.0.0-...-a4eb5f1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JwtSecretKey = "a random key"
)

Variables

This section is empty.

Functions

func JwtAuthRequired

func JwtAuthRequired() gin.HandlerFunc

JwtAuthRequired 通过jwt秘钥来验证用户身份

Types

type JwtClaim

type JwtClaim struct {
	jwt.StandardClaims
	UserID uint
}

Jump to

Keyboard shortcuts

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