jwt

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWToken

type JWToken struct{}

func (JWToken) Decode

func (JWToken) Decode(token string, checkExpire bool) (map[string]interface{}, error)

func (JWToken) Encode

func (JWToken) Encode(payload map[string]interface{}) (string, error)

Encode time.Now().Add(time.Second * time.Duration(exp)).Unix(),

Jump to

Keyboard shortcuts

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