auth

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthStatusContextKey    = "auth_status"
	AuthErrorContextKey     = "auth_error"
	AuthTokenHashContextKey = "auth_token_hash"
)

Variables

This section is empty.

Functions

func HashToken

func HashToken(token string) string

func SetAuthFailure

func SetAuthFailure(c echo.Context, reason string)

func SetAuthSuccess

func SetAuthSuccess(c echo.Context, token string)

func TokenMiddleware

func TokenMiddleware(accessToken string, logger *logging.Logger) echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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