ONE-TIME SETUP
Connect your Firebase Admin Security
This setup page tells you exactly what must be configured in your own Firebase project. No password or private key is stored in this website.
1. Create/choose a separate Firebase project
Use a dedicated Firebase project for Hasan Web Studio. Do not use your LYVON project unless you intentionally want both systems in the same Firebase project.
2. Enable Email/Password
Firebase Console → Authentication → Sign-in method → Email/Password → Enable.
3. Create your admin user
Firebase Console → Authentication → Users → Add user. Save the exact email and password securely.
4. Copy the Web App config
Project settings → Your apps → Web app → Config. Paste only the Web App config into studio/firebase-config.js. Never paste a service-account private key.
5. Create the admin allowlist
After creating the user, copy that user's UID. Firestore Database → create collection admins → document ID = your UID. Add field active (boolean) = true.
6. Publish the rules
Use the rules in firebase-admin.rules. They require an authenticated user whose UID exists in admins.
7. Test
Open studio/login.html. Your authorized account should enter the Control Center. A non-admin account should be rejected.
Important: Firebase Web API keys are client-side configuration, but service-account private keys must never be placed in this ZIP or frontend code.