go_jwt

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// BearerPrefix is the prefix for the bearer token
	BearerPrefix = "Bearer"

	// CtxTokenClaimsKey is the key for the JWT context claims
	CtxTokenClaimsKey = "jwt_claims"

	// IdClaim is the claim for the JWT ID
	IdClaim = "jti"

	// IsRefreshTokenClaim is the claim for refresh token
	IsRefreshTokenClaim = "irt"

	// SubjectClaim is the claim for the subject
	SubjectClaim = "sub"
)

Variables

View Source
var (
	UnableToParsePrivateKeyError = errors.New("unable to parse private key")
	UnableToParsePublicKeyError  = errors.New("unable to parse public key")
	InvalidKeyTypeError          = errors.New("invalid key type")
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
gin
redis

Jump to

Keyboard shortcuts

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