jwt

package
v0.0.0-...-46c013d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasTokenExpired

func HasTokenExpired(token string) bool

HasTokenExpired :

func VerifyToken

func VerifyToken(token string) error

VerifyToken :

Types

type Token

type Token struct {
	Type         string  `json:"type"`
	Token        *string `json:"token"`
	ExpiresOn    int64   `json:"expiresOn"`
	RefreshToken *string `json:"refreshToken"`
}

Token :

func GenerateToken

func GenerateToken(host *string, payload map[string]interface{}) *Token

GenerateToken :

Jump to

Keyboard shortcuts

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