Email/Password Auth

Introduction

Email/Password is the base authentication used by Remote Storage. It runs automatically during initialization — no user interaction or login UI is needed. Remote Storage generates device-scoped credentials (email and password) from the device's unique identifiers and uses them to authenticate with Firebase.

Prerequisites

Setup Email/Password Authentication

  1. Navigate to your Firebase project in the Firebase Console.

  2. Click on Authentication → Sign-in method.

  3. Click Add new provider → select Email/Password.

  4. Toggle Enable to on.

  5. Click Save.

No App ID, Secret, or other credentials are needed. Remote Storage automatically generates a unique email and password per device and signs in behind the scenes.

How It Works

  • On first launch, the system creates a Firebase user using a device-derived email and password.

  • On subsequent launches, it reuses the cached Firebase user (or re-authenticates if the cache is invalid).

  • This gives each device a unique Firebase UID, which is used to scope Firestore documents.

Last updated

Was this helpful?