jwt

package module
v0.0.0-...-efcb511 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT 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 {
	Token     *string `json:"token"`
	ExpiresOn int64   `json:"expiresOn"`
	Type      string  `json:"type"`
}

Token :

func GenerateToken

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

GenerateToken :

Jump to

Keyboard shortcuts

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