fiber

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddlewareFiber

type AuthMiddlewareFiber struct {
	PublicKey   string
	PrivateKey  string
	AuthHeader  string
	TokenHeader string
}

func AuthMiddleware

func AuthMiddleware(publicKey string, privateKey string, authHeader string, tokenHeader string) *AuthMiddlewareFiber

func (AuthMiddlewareFiber) GetAndDecodeToken

func (auth AuthMiddlewareFiber) GetAndDecodeToken(ctx *fiber.Ctx) (err error)

Jump to

Keyboard shortcuts

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