[Question] Disable auto-login in Firebase?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp, firebase
- Domain
- authentication, desktop
Research direction
Start with the firebase::App::Create, firebase::auth::Auth::GetAuth, SignOut(), and current_user() calls shown in the report. Check the desktop Auth implementation and its persistence behavior to determine whether auto-login can be disabled and where credentials are stored; done means providing confirmed answers for both questions.
Written by the indexing model from the issue text.
Description
[READ] For Firebase Unity SDK question, please report to Firebase Unity Sample
Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
[REQUIRED] Please fill in the following fields:
- Pre-built SDK from the website or open-source from this repo: pre-built SDK
- Firebase C++ SDK version: 12.7.0
- Main Firebase Components in concern: Auth (Auth, Database, etc.)
- Other Firebase Components in use: _____ (Auth, Database, etc.)
- Platform you are using the C++ SDK on: Ubuntu 24.04 (Mac, Windows, or Linux)
- Platform you are targeting: Desktop (iOS, Android, and/or desktop)
[REQUIRED] Please describe the question here:
I want to disable auto-login, that is, I want to make that when the user opens my Desktop application current_user()->is_valid() evaluates to false (no currently active user).
At the moment the authentication state looks like to persist, I've tried avoiding this by signin-out as soon as I connect to the API:
m_firebase_app = firebase::App::Create(app_options);
m_firebase_auth = firebase::auth::Auth::GetAuth(m_firebase_app);
m_firebase_auth->SignOut();
m_firebase_auth->current_user().is_valid(); // Is still true with valid uid/email
But it does not work.
Another question: where is the authentication persisted on my local filesystem (which path)?
- Dominant language
- C++
- Stars
- 326
- Forks
- 138
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-cpp-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
firebase/firebase-cpp-sdk#1905 · 2 comments ·
-
api: firestore
Difficulty 5/5 Over a week Newbie friendliness 35/100
firebase/firebase-cpp-sdk#1920 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
firebase/firebase-cpp-sdk#1904 · 1 comment ·
-
new type: question
Difficulty 4/5 3-5 days Newbie friendliness 45/100
firebase/firebase-cpp-sdk#1892 · 1 comment ·
-
nightly-testing
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/firebase-cpp-sdk#1859 ·
All issues in firebase/firebase-cpp-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Openai_reviewed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ydb-platform/ydb#53974 · 3 comments ·