Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Question] Disable auto-login in Firebase?

Open
#1,771 0 comments 0 reactions 0 assignees View on GitHub

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

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

new type: question
[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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-cpp-sdk

All issues in firebase/firebase-cpp-sdk

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.