validator

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCodeInvalidToken *string
)
View Source
var (
	ErrNilFailHandler = errors.New("fail handler cannot be nil")
)

Functions

This section is empty.

Types

type FailHandler added in v0.5.19

type FailHandler func(
	w http.ResponseWriter,
	err error,
)

FailHandler handles the possible JWT validation errors

func NewDefaultFailHandler added in v0.5.19

func NewDefaultFailHandler(
	jsonEncoder gonethttpjson.Encoder,
) (FailHandler, error)

NewDefaultFailHandler function

Jump to

Keyboard shortcuts

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