summaryrefslogtreecommitdiff
path: root/lib/users/auth/verifyCredentails.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/users/auth/verifyCredentails.ts')
-rw-r--r--lib/users/auth/verifyCredentails.ts11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/users/auth/verifyCredentails.ts b/lib/users/auth/verifyCredentails.ts
index 1b67b874..ff3cd0e3 100644
--- a/lib/users/auth/verifyCredentails.ts
+++ b/lib/users/auth/verifyCredentails.ts
@@ -1,4 +1,5 @@
// lib/auth/verifyCredentials.ts
+'use server'
import bcrypt from 'bcryptjs';
import { eq, and, desc, gte, count } from 'drizzle-orm';
@@ -13,7 +14,7 @@ import {
vendors
} from '@/db/schema';
import { headers } from 'next/headers';
-import { generateAndSendSmsToken, verifySmsToken } from './passwordUtil';
+import { verifySmsToken } from './passwordUtil';
// 에러 타입 정의
export type AuthError =
@@ -590,14 +591,6 @@ export async function authenticateWithSGips(
const user = localUser[0];
- // 3. MFA 토큰 생성 (S-Gips 사용자는 항상 MFA 필요)
- // const mfaToken = await generateMfaToken(user.id);
-
- // 4. SMS 전송
- if (user.phone) {
- await generateAndSendSmsToken(user.id, user.phone);
- }
-
return {
success: true,
user: {