middleware

package
v0.0.0-...-0ca97f1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(cfg config.Config) fiber.Handler

func AuthorizeMember

func AuthorizeMember(cfg config.Config) fiber.Handler

Types

type GoogleClaims

type GoogleClaims struct {
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
	FirstName     string `json:"given_name"`
	LastName      string `json:"family_name"`
	Picture       string `json:"picture"`
	jwt.StandardClaims
}

func AuthorizeGoogleJWT

func AuthorizeGoogleJWT(c *fiber.Ctx) (GoogleClaims, error)

type JWTClaims

type JWTClaims struct {
	Email string `json:"email"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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