auth

package
v0.0.0-...-88ce844 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(email string) (string, error)

func ValidateToken

func ValidateToken(tokenString string) (*jwt.Token, error)

Types

type AuthMiddleware

type AuthMiddleware struct{}

func (*AuthMiddleware) IsAuthorized

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

type Generate

type Generate struct {
	Token string `json:""`
}

Jump to

Keyboard shortcuts

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