jwt

package
v0.0.0-...-a49b208 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type EnvConfig

type EnvConfig struct {
	SessionCookieName string
	Environment       string
	PublicKeyName     string
}

func LoadEnvConfig

func LoadEnvConfig() (*EnvConfig, error)

type JWTUtils

type JWTUtils struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() (*JWTUtils, error)

func (*JWTUtils) ExtractClaim

func (j *JWTUtils) ExtractClaim(claims jwt.MapClaims, claimKey string) (string, error)

func (*JWTUtils) ValidateToken

func (j *JWTUtils) ValidateToken(tokenString string) (jwt.MapClaims, error)

Jump to

Keyboard shortcuts

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