diff --git a/frontend/.env b/frontend/.env index 038109d3..4d364d32 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,4 +1,4 @@ VITE_OPEN_COLLECTIVE_API_KEY=your_key VITE_API_URL=https://api.utopia-lab.org VITE_VALIDATE_INVITE_FLOW_ID=01d61db0-25aa-4bfa-bc24-c6a8f208a455 -VITE_REDEEM_INVITE_FLOW_ID=todo +VITE_REDEEM_INVITE_FLOW_ID=cc80ec73-ecf5-4789-bee5-1127fb1a6ed4 diff --git a/frontend/src/api/inviteApi.ts b/frontend/src/api/inviteApi.ts index adcfb9ad..44a36c72 100644 --- a/frontend/src/api/inviteApi.ts +++ b/frontend/src/api/inviteApi.ts @@ -39,8 +39,7 @@ export class InviteApi { async redeemInvite(inviteId: string): Promise { try { const response = await fetch( - // `${config.apiUrl}/flows/trigger/${config.redeemInviteFlowId}?secret=${inviteId}`, - `${config.apiUrl}/flows/trigger/${config.validateInviteFlowId}?secret=${inviteId}`, + `${config.apiUrl}/flows/trigger/${config.redeemInviteFlowId}?secret=${inviteId}`, { method: 'GET', mode: 'cors', diff --git a/frontend/src/config/index.ts b/frontend/src/config/index.ts index c57b213f..36f9e8f3 100644 --- a/frontend/src/config/index.ts +++ b/frontend/src/config/index.ts @@ -3,6 +3,8 @@ export const config = { validateInviteFlowId: String( import.meta.env.VITE_VALIDATE_INVITE_FLOW_ID ?? '01d61db0-25aa-4bfa-bc24-c6a8f208a455', ), - redeemInviteFlowId: String(import.meta.env.VITE_REDEEM_INVITE_FLOW_ID ?? 'todo'), + redeemInviteFlowId: String( + import.meta.env.VITE_REDEEM_INVITE_FLOW_ID ?? 'cc80ec73-ecf5-4789-bee5-1127fb1a6ed4', + ), openCollectiveApiKey: String(import.meta.env.VITE_OPEN_COLLECTIVE_API_KEY ?? ''), }