Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Question] Disable auto-login in Firebase?

Đang mở
#1,771 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, firebase
Lĩnh vực
authentication, desktop

Hướng nghiên cứu

Bắt đầu với các lệnh gọi firebase::App::Create, firebase::auth::Auth::GetAuth, SignOut() và current_user() được nêu trong báo cáo. Kiểm tra triển khai Auth trên desktop và hành vi lưu trữ bền vững của nó để xác định liệu có thể tắt tính năng đăng nhập tự động hay không và thông tin xác thực được lưu ở đâu; được coi là hoàn thành khi cung cấp được các câu trả lời đã xác nhận cho cả hai câu hỏi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)?

Ngôn ngữ chính
C++
Star
326
Fork
138
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-cpp-sdk

Tất cả issue của firebase/firebase-cpp-sdk

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.