middlewares

package
v0.0.0-...-5186bfa Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(c *gin.Context)

AuthMiddleware is a Gin middleware function for JWT authentication

func CheckUser

func CheckUser(c *gin.Context)

CheckUser middleware checks for the authorization header and attaches the user's email to the context.

func RequireUser

func RequireUser(c *gin.Context)

RequireUser middleware ensures that the user's email is present in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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