jwt

package
v0.0.0-...-a6f3855 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretKey = []byte("secret")
)

secret key used to sign tokens

Functions

func GenerateToken

func GenerateToken(uid string) (string, error)

func ParseToken

func ParseToken(tokenStr string) (string, error)

ParseToken parses a jwt token and returns the username in it's claims

Types

This section is empty.

Jump to

Keyboard shortcuts

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