middleware

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_KEY = "JWT_PAYLOAD"

Variables

This section is empty.

Functions

func CreateJWTMiddleware

func CreateJWTMiddleware() gin.HandlerFunc

func GetJWTClaims

func GetJWTClaims(c *gin.Context) (jwt.MapClaims, error)

Types

type User

type User struct {
	Name string
	Role string
}

Jump to

Keyboard shortcuts

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