Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginHandler ¶
type LoginHandler struct {
// contains filtered or unexported fields
}
func NewLoginHandler ¶
func NewLoginHandler( ur *repositories.UserRepository, tr *repositories.TokensRepository, jwt *services.JWTAuthenticator, jwtConfig *configs.JWTConfig, ) *LoginHandler
func (*LoginHandler) Handle ¶
func (h *LoginHandler) Handle(ctx fiber.Ctx) error
Login via email/password or phone/password godoc
@Param body body dtos.LoginRequestDto true "Body" @Tags Auth Controller @Accept json @Produce json
@Success 200 {object} dtos.LoginResponseDto @Router /api/v1/auth/login [post]
Click to show internal directories.
Click to hide internal directories.