Admin · Firebase project “rarefit”
Checking sign-in…
Admin · sign in required
Restricted area.
One sign-in for everyone — store owners land here, shoppers land on My account.
Sign in →Admin · access denied
Not your door.
You're signed in as , which isn't a store-owner account — so the dashboard stays closed. Your shopping account works as normal.
Admin dashboard · ● Firebase “rarefit” live
Good day, admin.
- Revenue · 6 mo
- —
- Orders
- —
- Customers
- —
- signed in by email
- Live products
- —
- in Firestore
Exclusive · sales pulse
Last 6 months
Cloud + device checkouts
No sales in the last 6 months yet… run a test checkout and watch this graph move.
Recent orders
All orders →| Customer | Items | Total |
|---|---|---|
| Loading… | ||
Newest customers
All →- Loading…
Top sellers by units
- Loading…
Database rules (Firebase console → Firestore → Rules)
rules_version = '2';
service cloud.firestore {
function isAdmin() {
return request.auth != null
&& (exists(/databases/$(database)/documents/admins/$(request.auth.uid))
|| request.auth.token.email == 'bhagyamasalawala@gmail.com');
}
match /databases/{db}/documents {
match /products/{id} {
allow read: if true;
allow write: if isAdmin();
}
match /stock/{id} {
allow read: if true;
allow write: if isAdmin();
}
match /customers/{uid} {
allow create: if request.auth != null && request.auth.uid == uid;
allow get, update: if request.auth != null
&& (request.auth.uid == uid || isAdmin());
allow list: if isAdmin();
}
match /carts/{uid} {
allow read, write: if request.auth != null
&& (request.auth.uid == uid || isAdmin());
}
match /wishlists/{uid} {
allow read, write: if request.auth != null
&& (request.auth.uid == uid || isAdmin());
}
match /orders/{id} {
allow create: if request.auth != null;
allow get: if request.auth != null
&& (isAdmin() || resource.data.customerUid == request.auth.uid);
allow list: if isAdmin();
allow update, delete: if isAdmin();
}
match /admins/{uid} {
allow get: if request.auth != null && request.auth.uid == uid;
allow list: if isAdmin();
allow write: if false;
}
}
}