jwt

package
v1.3.167 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
}

func (*JWT) EncodeJWT

func (t *JWT) EncodeJWT(secret string, headers, payload map[string]string) (string, error)

func (*JWT) VerifyJWT

func (t *JWT) VerifyJWT(secret, jwt string, now int64) error

func (*JWT) VerifyJWTAndGetPayload added in v0.0.4

func (t *JWT) VerifyJWTAndGetPayload(secret, jwt string, now int64) (map[string]string, error)

Jump to

Keyboard shortcuts

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