jwt

package module
v0.0.0-...-d903f74 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(claims map[string]any, timeout int, secret []byte) (string, error)

makeJWT is used for creating a JWT.

func Verify

func Verify(jwt string, secret []byte) (bool, map[string]string, map[string]any, error)

VerifyJWT verifies a given JWT and checks if it is expired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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