auth

package
v0.0.0-...-61dd45f Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableCors

func EnableCors(w *http.ResponseWriter)

func GenerateJWT

func GenerateJWT(username string) string

GenerateJWT generates the JSON web token

func IsAuthorized

func IsAuthorized(endpoint func(http.ResponseWriter, *http.Request)) http.Handler

IsAuthorized checks to see if a user has a current JWT

Types

This section is empty.

Jump to

Keyboard shortcuts

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