Login & Email Setup Guide

Last updated: September 2026

Ye guide batati hai ki AppsDone ka user-login system kaise kaam karta hai aur bilkul FREE me email OTP + "Continue with Google" ko live kaise karte ho. Sab steps 10–15 minute ke hain, koi paid service ki zaroorat nahi.

Email OTP login

User apna email deta hai → 6-digit code inbox me aata hai → code daalke login. Aapke Gmail account se ye mails jaate hain (free, ~500/day).

Continue with Google

Google ka popup khulta hai, one-click login. Firebase Spark (free) plan pe unlimited sign-ins — Google khud sab handle karta hai.

Abhi (default) test mode: jab tak SMTP set nahi hota, OTP code login page pe hi screen me dikh jata hai — testing ke liye theek, but real users ke liye email chahiye. Neeche Step 1 complete karte hi real emails bhejna start ho jaayenge.

Step 1 — Email OTP ke liye Gmail SMTP setup (free)

Sabse simple aur free tareeka: apne Gmail account ka App Password use karna. Isse AppsDone khud aapke Gmail se OTP mail bhejega. Free limit ≈ 500 mails/day — ek chote app store ke liye kaafi zyada hai.

1

Google account me 2-Step Verification ON karo (agar pehle se nahi hai): myaccount.google.com/security

2

Phir App Password banao: myaccount.google.com/apppasswords — naam me kuch bhi likho jaise AppsDone OTP.

3

Google ek 16-letter password dega (jaise abcd efgh ijkl mnop). Ise copy kar lo — dobara nahi dikhega.

4

VPS pe AppsDone ke .env file me ye lines add karo:

nano /var/www/appsdone/appsdone-store/.env

# --- email OTP (Gmail SMTP) ---
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=yourgmail@gmail.com
SMTP_PASS=abcdefghijklmnop   # 16-letter app password (spaces hatao)
SMTP_FROM="AppsDone <yourgmail@gmail.com>"
5

Service restart karo:

systemctl restart appsdone
Ho gaya! Ab login page pe email daalne par asli 6-digit code user ki inbox me aayega — spam folder bhi check kar lena pehli baar.

Gmail ki jagah aur free options

Agar aap 500/day se zyada mails chahte ho ya Gmail se alag rakhna hai:

  • Brevo (brevo.com) — 300 mails/day free. SMTP: smtp-relay.brevo.com:587
  • Resend (resend.com) — 3,000 mails/month free (domain verify karni padti hai)
  • Mailgun — trial me limited free

Sirf SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASS badalna hai, baaki sab same.

Step 2 — Continue with Google (Firebase, free & unlimited)

"Continue with Google" button Firebase ke through chalta hai. Firebase ka Spark plan 100% free hai aur Google sign-in pe koi limit nahi — aapka kharcha zero.

1

console.firebase.google.com kholo → Add project → naam do (jaise appsdone) → Google Analytics disable kar sakte ho → Create.

2

Project me left sidebar → Build → AuthenticationGet started.

3

Sign-in method tab me Google select karo → Enable → support email chuno → Save.

4

Wahi page pe Settings (gear) → Authorized domains me jao → Add domainappsdone.store likho (bina https ke).

5

Project Overview → Web app icon (</>) → app register karo → jo config mile usme se 3 cheezein chahiye:

NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSy.........
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=appsdone-xxxxx.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=appsdone-xxxxx
6

Ye 3 lines bhi wahi .env me daalo aur restart:

nano /var/www/appsdone/appsdone-store/.env   # paste the 3 lines
systemctl restart appsdone
Ab login page pe Continue with Google button live ho jaayega. API key public hota hai — ye normal hai, security rules Firebase khud sambhalta hai.

Step 3 — Admin powers + apni email ko admin banao

.env me apni email daalo — aapke site-account ko automatic admin role mil jaayega:

ADMIN_EMAILS=realcstarsyt@gmail.com

Control Center (/admin-access) alag hai — wo apneADMIN_SECRET_KEY se khulta hai aur full power deta hai: users ban karna, IDs banana (magic login link ke saath), kisi bhi user ki apps/scans dekhna, publish/delete — sab.

Kaun se emails allowed hain?

Security ke liye sirf ye providers register kar sakte hain:

  • Gmail — gmail.com, googlemail.com
  • Microsoft — outlook.com (sab country versions), hotmail.com, live.com, msn.com
  • Proton Mail — proton.me, protonmail.com, pm.me

Baaki sab (10minutemail, temp-mail, guerrilla, yopmail, etc.) server-side reject ho jaate hain — allowlist hai, to temp mail ka koi jugaah nahi hai. OTP 10 minute me expire hota hai, 5 galat attempts pe code mar jaata hai, aur ek email pe har 10 minute me max 3 codes hi ja sakte hain.

Quick test checklist

  • Login page kholo → apni Gmail daalo → code aana chahiye inbox me (ya SMTP set hone tak screen pe)
  • Code daalo → My Uploads dashboard khulna chahiye
  • Logout → dobara login → "Continue with Google" try karo (Firebase set karne ke baad)
  • Temp mail (jaise @mailinator.com) daalke dekho — "not allowed" error aana chahiye
  • Login ke bina APK upload karke dekho — login prompt aana chahiye
  • APK upload karke complete hone do — auto-generated description card check karo

.env ka final snapshot

DATABASE_URL=file:/var/www/appsdone/appsdone-store/db/custom.db
ADMIN_SECRET_KEY=<aapka lamba secret key>
ADMIN_EMAILS=realcstarsyt@gmail.com

# email OTP (Gmail)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=realcstarsyt@gmail.com
SMTP_PASS=<16-letter app password>
SMTP_FROM="AppsDone <realcstarsyt@gmail.com>"

# Continue with Google (Firebase)
NEXT_PUBLIC_FIREBASE_API_KEY=<firebase api key>
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=<project>.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=<project-id>

Save karke hamesha systemctl restart appsdone karna mat bhoolna.

Zero cost setup Auto description after every scan Temp mails blocked