middlewares

package
v0.0.0-...-ec225d0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAdmin

func EnsureAdmin()

func EnsureAuthentication

func EnsureAuthentication() fiber.Handler

Guards a specific endpoint in the API.

func FiberMiddleware

func FiberMiddleware(app *fiber.App)

func GetDataFromJWT

func GetDataFromJWT(c *fiber.Ctx) error

Gets user data (their ID) from the JWT middleware. Should be executed after calling 'EnsureAuthentication()'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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