jwt

package
v0.4.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnableToReadPrivateKeyFileError = errors.New("unable to read private key file")
	UnableToReadPublicKeyFileError  = errors.New("unable to read public key file")
	UnableToParsePrivateKeyError    = errors.New("unable to parse private key")
	UnableToParsePublicKeyError     = errors.New("unable to parse public key")
	InvalidTokenError               = errors.New("invalid token")
	UnableToIssueTokenError         = errors.New("unable to issue token")
	UnexpectedSigningMethodError    = errors.New("unexpected signing method")
	InvalidClaimsError              = errors.New("invalid claims")
	TokenExpiredError               = errors.New("token expired")
)

Functions

func LoadJwtKey added in v0.4.13

func LoadJwtKey(jwtKey string) (string, error)

LoadJwtKey loads the JWT private key from the environment

Types

type Token added in v0.3.4

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 added in v0.3.4

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