jwt

package
v0.0.0-...-235c51f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(secretKey string, expiryDuration time.Duration, tokenClaims map[string]interface{}) (string, error)

GenerateToken will generate a JWT token

func GetTokenClaims

func GetTokenClaims(token *jwt.Token) (map[string]interface{}, error)

GetTokenClaims will get the claims from the JWT token

Types

This section is empty.

Jump to

Keyboard shortcuts

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