middleware

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth added in v1.3.0

func Auth(ctx *gin.Context)

jwt授权验证

func CorsHandle

func CorsHandle() gin.HandlerFunc

跨域

func JWTAuth

func JWTAuth(authCode string) (userId uint, newToken string, err error)

func OptionsMethod

func OptionsMethod(ctx *gin.Context)

func ValidatorTgToken

func ValidatorTgToken(ctx *gin.Context)

验证TG的token

Types

This section is empty.

Jump to

Keyboard shortcuts

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