jwt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWT jwtToken

Functions

func New

func New(privatekey, publickey []byte, parseOpt ...jwt.ParserOption)

func SignToken

func SignToken(body map[string]interface{}) (string, error)

SignToken signs a token using a private key

func VerifyToken

func VerifyToken(token string) (map[string]interface{}, error)

VerifyToken verifies a token using a public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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