middlewares

package
v0.0.0-...-f47b430 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindJson

func BindJson(d any) fiber.Handler

func NewPasetoMiddleware

func NewPasetoMiddleware(configs ...*PasetoConfig) fiber.Handler

NewPasetoMiddleware returns a paseto fiber middleware handler

func ReqUser

func ReqUser() fiber.Handler

Types

type PasetoConfig

type PasetoConfig struct {
	TokenLookup  string
	ContextKey   string
	Filter       func(ctx *fiber.Ctx) bool
	AuthScheme   string
	SymmetricKey string
}

PasetoConfig indicates the configuration of the token middleware

Jump to

Keyboard shortcuts

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