jwt

package
v0.0.0-...-d51db54 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJWT

func InitJWT(config config.JWTConfig) error

func IsRevoked

func IsRevoked(string) bool

func SignToken

func SignToken(claims context.Session, subject string, until time.Time) (tkn string, err error)

func ValidateIssuer

func ValidateIssuer(iss string) bool

func VerifyToken

func VerifyToken(tokenStr string) (claims context.Session, valid bool, err error)

Types

type CustomClaims

type CustomClaims struct {
	Container context.Session `json:"container"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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