middleware

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package middleware provides middleware for the application.

Index

Constants

This section is empty.

Variables

View Source
var JwtKey = []byte("aerosquirrel_jwt_secret_key")

JwtKey is the key used to sign JWTs.

Functions

func TokenAuth

func TokenAuth(c *gin.Context)

TokenAuth is a middleware for authenticating a user with a JWT.

Types

This section is empty.

Jump to

Keyboard shortcuts

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