jwtlib

package
v0.0.0-...-a99fd5a Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 4 Imported by: 0

README

golang-modules/jwtlib

Golang Jason Web Token Module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetData

func GetData(tokenString string) ([]byte, error)

func GetExpireTime

func GetExpireTime(tokenString string) (float64, error)

func New

func New(data interface{}, expireSec int64) (string, error)

func RefreshExpireTime

func RefreshExpireTime(tokenString string, expireSec int64) (string, error)

Types

type Claims

type Claims struct {
	Payload interface{} `json:"payload,omitempty"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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