jwt

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrExpiry indicates that the token is expired.
	ErrExpiry = errors.New("token is expired")
	// ErrSetClaim indicates an inability to set the claim.
	ErrSetClaim = errors.New("failed to set claim")
	// ErrSignJWT indicates an error in signing jwt token.
	ErrSignJWT = errors.New("failed to sign jwt token")
	// ErrParseToken indicates a failure to parse the token.
	ErrParseToken = errors.New("failed to parse token")
	// ErrValidateJWTToken indicates a failure to validate JWT token.
	ErrValidateJWTToken = errors.New("failed to validate jwt token")
	// ErrJSONHandle indicates an error in handling JSON.
	ErrJSONHandle = errors.New("failed to perform operation JSON")
)

Functions

func New

func New(secret []byte) auth.Tokenizer

NewRepository instantiates an implementation of Token repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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