jwtauth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorsHandler

func ErrorsHandler() fiber.Handler

func GetUser

func GetUser(c *fiber.Ctx) (*users.User, bool)

func New

func New(jwtSvc *jwt.Service, usersSvc *users.Service) fiber.Handler

New returns a middleware that validates JWT token and sets user info in context.

func WithRole

func WithRole(required users.Role) fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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