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.
Click to show internal directories.
Click to hide internal directories.