jwt

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// IdClaim is the claim for the JWT ID
	IdClaim = "jwt_id"

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

	// UserIdClaim is the claim for the user ID
	UserIdClaim = "user_id"

	// UserSharedIdClaim is the claim for the user shared ID
	UserSharedIdClaim = "user_shared_id"
)

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

type Token

type Token string

Token represents a token type

const (
	// RefreshToken represents a refresh token
	RefreshToken Token = "refresh_token"

	// AccessToken represents an access token
	AccessToken Token = "access_token"
)

func (Token) String

func (t Token) String() string

String returns the string representation of the token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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