auth

package
v0.0.0-...-3844cd3 Latest Latest
Warning

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

Go to latest
Published: May 11, 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 NewSignInPayload

func NewSignInPayload() *signinpayload

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)

Jump to

Keyboard shortcuts

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