jwt

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTWriter

type JWTWriter struct {
	Token *jwt.Token
}

func NewJWTWriter

func NewJWTWriter(token string) (*JWTWriter, error)

func (*JWTWriter) IsHMACAlg added in v0.4.3

func (j *JWTWriter) IsHMACAlg() bool

func (*JWTWriter) SignWithKey

func (j *JWTWriter) SignWithKey(key interface{}) (string, error)

func (*JWTWriter) SignWithMethodAndKey

func (j *JWTWriter) SignWithMethodAndKey(method jwt.SigningMethod, key interface{}) (string, error)

func (*JWTWriter) SignWithMethodAndRandomKey added in v0.4.4

func (j *JWTWriter) SignWithMethodAndRandomKey(method jwt.SigningMethod) (string, error)

func (*JWTWriter) WithAlgNone

func (j *JWTWriter) WithAlgNone() (string, error)

func (*JWTWriter) WithoutSignature

func (j *JWTWriter) WithoutSignature() (string, error)

Jump to

Keyboard shortcuts

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