auth

package
v0.0.0-...-16ce69d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() router.Middleware

func Token

func Token(writer http.ResponseWriter, request *http.Request, params httprouter.Params)

Types

type JwtClaims

type JwtClaims struct {
	Email string `json:"email"`
	jwt.RegisteredClaims
}

func ExtractAuthClaims

func ExtractAuthClaims(ctx context.Context) (*JwtClaims, error)

type Loginpayload

type Loginpayload struct {
	Email string
}

Jump to

Keyboard shortcuts

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