jwt

package module
v1.0.0 Latest Latest
Warning

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

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

README

go-jwt

Golang implementation of JWTs using HMAC for signing

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func Verify

func Verify(jwt string, secret []byte) (bool, map[string]interface{}, 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