uiconfig.callbacks are not called for email link sign in method if onAuthStateChanged listener is registered
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react
- Lĩnh vực
- authentication
Hướng nghiên cứu
Tái hiện luồng chuyển hướng liên kết email với một listener onAuthStateChanged và cấu hình uiconfig.callbacks được hiển thị, sau đó so sánh với luồng không có listener. Truy vết tích hợp FirebaseUI của React wrapper để tìm nơi callback thành công bị bỏ qua; hoàn tất khi callback được gọi cùng với listener trạng thái xác thực cho đăng nhập bằng liên kết email mà không thay đổi các provider khác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am using provider: EmailAuthProvider.PROVIDER_ID with EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD and flow = redirect. I register a listener for onAuthStateChanged in componentDidMount and I have
uiconfig = {
callbacks: {
signInSuccessWithAuthResult: function(authResult, redirectUrl){
console.log("called success callback");
return false;
}
}
}
(other parts of config skipped for brevity)
The onAuthStateChanged listener will be called but the signInSuccessWithAuthResult callback will not. If I get rid of the listener, the callback is hit. This issue only applies to email link sign in- google, facebook, etc[ work fine and call both the listener and the callback.
I need the signInSuccessWithAuthResult callback to take actions that need to happen only once on signup, rather than every time the user logs in/refreshes the page, which is what onAuthStateChanged would get me.
@jhuleatt @wti806 This seems like it might be related to these other issues issues: #67 or https://github.com/firebase/firebaseui-web/issues/656 any thoughts?
@dankawka maybe related to the issue you called in #67 ?
- Ngôn ngữ chính
- JavaScript
- Star
- 1.3k
- Fork
- 246
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebaseui-web-react
-
This Project Is DeadĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
firebase/firebaseui-web-react#292 · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
firebase/firebaseui-web-react#280 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
firebase/firebaseui-web-react#220 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
firebase/firebaseui-web-react#210 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
firebase/firebaseui-web-react#201 · 1 bình luận · 1 reaction ·
Tất cả issue của firebase/firebaseui-web-react
Issue tương tự
-
Progress difficulty filter lists Hard before MediumCó thể đã có người làm @Pandamachi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
sysprog21/codetrial#281 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[dsh-plugin.org | dsh-plugin-hub] plugin distribution incomplete: yjh051108/dsh-routing-suiteĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
yjh051108/dsh-routing-suite#227 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
needs-triage release-watch
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
remoteintech/remote-jobs#2271 ·
Maintainer thường phản hồi trong vòng 1 ngày