auth

package
v0.0.0-...-a812ceb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWTToken

func GenerateJWTToken(userEmail string) (string, error)

func GetEmail

func GetEmail() string

Types

type AuthMiddleware

type AuthMiddleware struct{}

func (*AuthMiddleware) IsAuthorized

func (amw *AuthMiddleware) IsAuthorized(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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