jwt

package
v0.0.0-...-0451d2a Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims
}

type JWTParser

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

func NewJWTParser

func NewJWTParser(opts ...ParserOpt) *JWTParser

func (*JWTParser) Decode

func (a *JWTParser) Decode(token string) (*auth.Token, error)

func (*JWTParser) Encode

func (a *JWTParser) Encode(sessionID string, ttl int64) (string, error)

type ParserOpt

type ParserOpt func(*JWTParser)

func WithSecretKey

func WithSecretKey(secret string) ParserOpt

type SecretKey

type SecretKey string

Jump to

Keyboard shortcuts

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