Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/backend/src/modules/auth/auth.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ authRouter.post(
"/otp/send",
sendOtpLimiter,
validateHandler(sendOtpSchema),
sendOtpController
sendOtpController,
);

const verifyOtplimiter = rateLimitHandler({
Expand All @@ -40,20 +40,20 @@ const verifyOtplimiter = rateLimitHandler({
authRouter.post(
"/otp/status",
validateHandler(statusOtpSchema),
checkOtpStatusController
checkOtpStatusController,
);

authRouter.post(
"/otp/verify",
verifyOtplimiter,
validateHandler(verifyOtpSchema),
verifyOtpController
verifyOtpController,
);

authRouter.get(
"/refresh-token",
validateHandler(refreshTokenSchema),
refreshTokenController
refreshTokenController,
);

authRouter.get("/logout", logoutController);
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

const twilioClient = twilio(
process.env.TWILIO_ACCOUNT_SID,
process.env.TWILIO_AUTH_TOKEN
process.env.TWILIO_AUTH_TOKEN,
);

const sendOtp = async (phoneNumber: string) => {
Expand Down
Loading