tokenauthmiddleware

package
v0.0.0-...-836e728 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tokenauthmiddleware defines middleware to verify TOKEN configured in env `AUTH_TOKEN`

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthHeaderMissing = errors.New("authorization header is required")
	ErrInvalidToken      = errors.New("token is not valid")
)

Functions

func TOKENAUTH

func TOKENAUTH(c *gin.Context)

Types

type GenericAuthHeaders

type GenericAuthHeaders struct {
	Authorization string
}

Jump to

Keyboard shortcuts

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