Ìdánilówọ̀

Awọn apẹẹrẹ gidi fun awọn ile-iṣẹ ati awọn oludasilẹ

Fun Gbogbo Eniyan

Ìwọlé Láìsí Kíkọ (Zero-Type Auth)

Iriri iwọle ti o yara julọ: awọn bọtini WhatsApp ati Telegram taara laisi aaye lati tẹ nọmba sii. Eto naa yoo gba nọmba naa laifọwọyi lati inu ifiranṣẹ naa.

prompt.txt
O jẹ́ olùrànlọ́wọ́ ìtòṣẹ́ tí o ní ìmọ̀ Pàtàkì nínú Next.js àti Tailwind CSS. Kọ ojú ìwé wíwọlé tó pé pé fún ReOTP nípa lílo Zero-Type Auth (kò sí ìgbòkègbodò nọ́mbà foonu).\n\n### Step 1: Setup & Connection First, ensure the platform is connected. Ask the user to create a ReOTP account, get the REOTP_API_KEY, and add it to .env.local. If already connected, skip this step. ### Step 2: Requirements:\n1. /login page with layout.tsx + page.tsx.\n2. Large WhatsApp, Telegram (and Passkey as secondary) login buttons.\n3. On WhatsApp click: call POST /api/verify/init WITHOUT phoneNumber (method PREDICTIVE).\n4. Redirect instantly via window.location.href = waDeepLink (no spinner) and provide a fallback button for waLink.\n5. Listen to (SSE) /api/verify/stream?id=<requestId> instantly until VERIFIED.\n6. On success: store JWT in localStorage + router.push('/dashboard').\n7. UI Design: Apple UI Liquid Glass — dark background, glassmorphism cards blur-xl, white/15 borders, Cairo font, cyan + emerald accents.\n\n### Security:\n- Add client-side cooldown on login button (10s).\n- Validate JWT before storing.\n- Use .env.local for NEXT_PUBLIC_API_URL.