middleware

package
v0.0.0-...-9dc0c09 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_HEADER = "X-API-TOKEN"
)

Variables

This section is empty.

Functions

func AuthWebSessionMiddleware

func AuthWebSessionMiddleware(auto401 bool, jwtService *services.JwtService) gin.HandlerFunc

func UpdateUserContext

func UpdateUserContext(c *gin.Context, user models.User)

A helper to write user_id and user_model to 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