From 14f61e24947fb92dd71ec0a7196a6e815f8e66da Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 21 Jul 2025 07:54:26 +0000 Subject: (최겸)기술영업 RFQ 담당자 초대, 요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tech-vendor-invitation-token.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/tech-vendor-invitation-token.ts') diff --git a/lib/tech-vendor-invitation-token.ts b/lib/tech-vendor-invitation-token.ts index 83c82448..04a31bcc 100644 --- a/lib/tech-vendor-invitation-token.ts +++ b/lib/tech-vendor-invitation-token.ts @@ -15,6 +15,7 @@ export interface TechVendorInvitationPayload { vendorId: number; vendorName: string; email: string; + vendorType: "조선" | "해양TOP" | "해양HULL" | ("조선" | "해양TOP" | "해양HULL")[]; type: "tech-vendor-invitation"; expiresAt: number; } @@ -26,6 +27,7 @@ export async function createTechVendorInvitationToken(payload: { vendorId: number; vendorName: string; email: string; + vendorType: "조선" | "해양TOP" | "해양HULL" | ("조선" | "해양TOP" | "해양HULL")[]; }): Promise { const expiresAt = Date.now() + 7 * 24 * 60 * 60 * 1000; // 7일 @@ -34,6 +36,7 @@ export async function createTechVendorInvitationToken(payload: { vendorName: payload.vendorName, email: payload.email, type: "tech-vendor-invitation", + vendorType: payload.vendorType, expiresAt, }) .setProtectedHeader({ alg: "HS256" }) @@ -78,6 +81,6 @@ export async function verifyTechVendorInvitationToken( * 초대 토큰을 포함한 가입 URL 생성 */ export async function createTechVendorSignupUrl(token: string): Promise { - const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"; - return `${baseUrl}/ko/auth/tech-signup?token=${token}`; + const baseUrl = process.env.NEXT_PUBLIC_URL || "http://localhost:3000"; + return `${baseUrl}/partners/tech-signup?token=${token}`; } \ No newline at end of file -- cgit v1.2.3