middleware

package
v0.0.2-0...-18890bd Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorized

func Authorized(c *gin.Context)

Authorized blocks unauthorized requests

func JWTMiddleware

func JWTMiddleware() gin.HandlerFunc

JWTMiddleware parses JWT token from cookie and stores data and expires date to the context JWT Token can be passed as cookie, or Authorization header

Types

This section is empty.

Jump to

Keyboard shortcuts

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