auth

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(sg *echo.Group)

func GenerateQRHandler

func GenerateQRHandler(c echo.Context) error

func SigninHandler

func SigninHandler(c echo.Context) error

func SignupHandler

func SignupHandler(c echo.Context) error

func ToggleMFAHandler

func ToggleMFAHandler(c echo.Context) error

func UpdatePasswordHandler

func UpdatePasswordHandler(c echo.Context) error

Types

type SigninOptions

type SigninOptions struct {
	Email    string `json:"email,omitempty"`
	OTP      string `json:"otp,omitempty"`
	Ticket   string `json:"ticket,omitempty"`
	Password string `json:"password,omitempty"`
}

type SignupOptions

type SignupOptions struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Name     string `json:"name"`
}

type ToggleMFAOptions

type ToggleMFAOptions struct {
	Code string `json:"code"`
}

type UpdatePasswordOptions

type UpdatePasswordOptions struct {
	NewPassword string `json:"newPassword,omitempty"`
	OldPassword string `json:"oldPassword,omitempty"`
}

Jump to

Keyboard shortcuts

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