auth

package
v0.0.0-...-f84b1fb Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckJWT

func CheckJWT(token string) error

This function checks if the JWT is still valid

func GenerateJWT

func GenerateJWT(username string) (string, error)

This function generates a new JSON Web Token The function also accepts the users username as a input

func PayloadJWT

func PayloadJWT(token string) (map[string]interface{}, error)

Returns the JWT payload if no error is present First check if the token is valid and then return the Claims

Types

This section is empty.

Jump to

Keyboard shortcuts

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