authhandler

package
v0.0.0-...-e8a9512 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthHandler

func NewAuthHandler(cfg *config.Config, service userservice.UserService, jwtHelper helper.JWTHelper) handler.Handler

Types

type RefreshTokenRequest

type RefreshTokenRequest struct {
}

type UserLoginRequest

type UserLoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserRegistrationRequest

type UserRegistrationRequest struct {
	Password    string `json:"password" validate:"required"`
	Email       string `json:"email" validate:"required,email"`
	PhoneNumber string `json:"phone_number" validate:"min=9,max=12,required,numeric"`
	FirstName   string `json:"first_name" validate:"required"`
	LastName    string `json:"last_name" validate:"required"`
	RePassword  string `json:"re_password" validate:"required"`
}

type UserRegistrationResponse

type UserRegistrationResponse struct {
	NextAction  string `json:"next_action"`
	Session     string `json:"session"`
	PhoneNumber string `json:"phone_number"`
	Email       string `json:"email"`
	// WaitingResendOTPSeconds uint64 `json:"waiting_resend_otp_seconds"`
	Message string `json:"message"`
}

type VerifyOTPRequest

type VerifyOTPRequest struct {
}

Jump to

Keyboard shortcuts

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