middleware

package
v0.0.0-...-0cee3b8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireAuth

func RequireAuth(rdb *redis.Client) gin.HandlerFunc

RequireAuth is a Gin middleware that validates an access token. If the token is valid, the request proceeds to the next handler. If the token is missing or invalid, the request is aborted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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