jwt

package
v0.0.0-...-363efc0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserEmail string

UserEmail email current user Auth

View Source
var UserID string

UserID id current user Auth

Functions

func DecodeJWT

func DecodeJWT(token string) (*structs.Claim, bool, string, error)

DecodeJWT docode token, get info

func GenerateJWT

func GenerateJWT(payload jwt.MapClaims) (string, error)

GenerateJWT method generate one token for user

Types

This section is empty.

Jump to

Keyboard shortcuts

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