auth

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(endpoint func(w http.ResponseWriter, r *http.Request)) http.Handler

func GenerateJWT

func GenerateJWT() (string, error)

func GetKey

func GetKey() string

GetKey returns key from file if exist or generate key

func ValidToken added in v0.0.24

func ValidToken(token string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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