token

package
v0.0.0-...-ba94b96 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(payload string, secret []byte, exp int64) (string, error)

GenerateToken return a token generated

func GetTokenData

func GetTokenData(token string, secret []byte) (interface{}, error)

GetTokenData parse a token and get data

func ValidateToken

func ValidateToken(token string, secret []byte) (bool, error)

ValidateToken validate a token

Types

This section is empty.

Jump to

Keyboard shortcuts

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