Documentation
¶
Index ¶
- type AuthController
- func (ac *AuthController) Enable2FA(c *fiber.Ctx) error
- func (ac *AuthController) ForgotPassword(c *fiber.Ctx) error
- func (ac *AuthController) Login(c *fiber.Ctx) error
- func (ac *AuthController) Logout(c *fiber.Ctx) error
- func (ac *AuthController) Me(c *fiber.Ctx) error
- func (ac *AuthController) RefreshToken(c *fiber.Ctx) error
- func (ac *AuthController) Register(c *fiber.Ctx) error
- func (ac *AuthController) ResetPassword(c *fiber.Ctx) error
- func (ac *AuthController) SendOTP(c *fiber.Ctx) error
- func (ac *AuthController) Verify2FA(c *fiber.Ctx) error
- func (ac *AuthController) VerifyOTP(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
AuthController handles authentication endpoints
func NewAuthController ¶
func NewAuthController(authService *auth.AuthService) *AuthController
NewAuthController creates a new auth controller
func (*AuthController) Enable2FA ¶
func (ac *AuthController) Enable2FA(c *fiber.Ctx) error
Enable2FA enables 2FA for the user
func (*AuthController) ForgotPassword ¶
func (ac *AuthController) ForgotPassword(c *fiber.Ctx) error
ForgotPassword handles password reset request
func (*AuthController) Login ¶
func (ac *AuthController) Login(c *fiber.Ctx) error
Login handles user login
func (*AuthController) Logout ¶
func (ac *AuthController) Logout(c *fiber.Ctx) error
Logout handles user logout
func (*AuthController) Me ¶
func (ac *AuthController) Me(c *fiber.Ctx) error
Me returns current user information
func (*AuthController) RefreshToken ¶
func (ac *AuthController) RefreshToken(c *fiber.Ctx) error
RefreshToken handles token refresh
func (*AuthController) Register ¶
func (ac *AuthController) Register(c *fiber.Ctx) error
Register handles user registration
func (*AuthController) ResetPassword ¶
func (ac *AuthController) ResetPassword(c *fiber.Ctx) error
ResetPassword handles password reset
func (*AuthController) SendOTP ¶
func (ac *AuthController) SendOTP(c *fiber.Ctx) error
SendOTP sends OTP to user's phone
Click to show internal directories.
Click to hide internal directories.