firebase / firebase/firebase-cpp-sdk
[Bug] User object unexpectedly updates UID when logging in
- 主要言語
- C++
- スター
- 326
- フォーク
- 137
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 5
説明
### [REQUIRED] Please fill in the following fields:
* Pre-built SDK from the [website](https://firebase.google.com/download/cpp) or open-source from this repo: open-source (self built)
* Firebase C++ SDK version: 11.0.1
* Main Firebase Components in concern: Auth
* Other Firebase Components in use: -
* Platform you are using the C++ SDK on: Windows
* Platform you are targeting: Windows
### [REQUIRED] Please describe the question here:
We noticed that a `User` object obtained from `current_user()` dynamically updates its UID and other user properties to match the current user’s properties when logging in or out.
This prevents keeping a reference to a previously logged in user, e.g. to delete a previously logged in anonymous user after logging in with user credentials.
This behavior does not match the iOS or Android SDK‘s behavior, where an object obtained from the equivalent `current_user()` method will not change when logging or out, and as far as we could tell it is also not documented.
I‘d appreciate feedback to know whether this is intended behavior or a bug, and whether there is a way to work around this behavior. I'm probably just missing something here.
コントリビューションガイド
調査の方向性
まず、Firebase C++ SDK 11.0.1を使用して、Windows上でのAuthのcurrent_user()およびloginまたはlogout周辺の動作を再現します。以前に取得したUserオブジェクトのUIDやその他のプロパティが変化するかを比較し、意図されたライフサイクルのセマンティクスについてコメントの議論を確認します。バグであるかどうかを確定し、期待される動作を文書化またはテストできれば完了です。ただし、このissueでは実装ファイルやテストは指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- authentication
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100