jwt

package
v0.0.0-...-da644f5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenJWT

func GenJWT(user JWTData) (string, error)

GenJWT generates a JWT token based off the userData provided

Types

type JWTData

type JWTData struct {
	User        string
	Password    string
	Permissions []string
}

JWTData struct for dealing with JWTData

func ReadJWT

func ReadJWT(token string) (JWTData, error)

ReadJWT takes a JWT token and decodes it into a JWTData object

Jump to

Keyboard shortcuts

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