auth

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenClaimsKey is the key used to store the token claims in the fiber context
	TokenClaimsKey = "tokenClaims"
)

Variables

This section is empty.

Functions

func AllOf

func AllOf(contract common.Address, tokenIDParam string, privilegeIDs []privileges.Privilege) fiber.Handler

AllOf creates a middleware that checks if the token contains all the required privileges this middleware also checks if the token is for the correct contract and token ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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