jwt

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(id string, admin bool) (string, error)

GenerateToken generates a jwt token.

func ValidateToken

func ValidateToken(tokenString string) (*claims, error)

ValidateToken validate a jwt token.

Types

type JWT

type JWT struct {
	// contains filtered or unexported fields
}

JWT is a prioritized configuration registry.

func New

func New() *JWT

New returns an initialized JWT instance.

Jump to

Keyboard shortcuts

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