firebase / firebase/firebase-js-sdk

Firebase return document not exist after clear cookies with IndexedDb persistence enabled.

Open
#6,591 14 comments 0 reactions 1 assignee Claimed by @cherylEnkidu View on GitHub
api: firestore bug
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: macOS 12.1
* Browser version: Chrome 105
* Firebase SDK version: 9.9.4
* Firebase Product: auth/firestore (auth, database, storage, etc)

### [REQUIRED] Describe the problem

Firebase return document not exist after clear cookies with IndexedDb persistence enabled.

#### Steps to reproduce:
1. Create new Firebase authentication account and generate custom token from server environment.
2. Send token to client and sign in with custom token.
3. Write one document to /testing/document1
4. Get document /testing/document1, document is exists, everything correct.
5. Clear website cookies from Chrome address bar.
6. Repeat step 1 and sign in again.
7. Try get document at /testing/document1, return not exists (which if false).

This is only happening with enableIndexedDbPersistence enabled.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.