Help us shape the future of Go! Take the 2026 Go Developer Survey

jwt

package
v1.3.115 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 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, expire int64) error

func (*JWT) VerifyJWTAndGetPayload added in v0.0.4

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

Jump to

Keyboard shortcuts

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