firebase / firebase/firebaseui-web-react

SignInOptions do not render on sign-in screen when logging out after making API call

オープン
#51 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.3k
フォーク
246
PR マージ指標
30日以内にマージされた PR はありません

説明

I am building an app using the react web UI and I've run into a very strange issue: whenever I logout of my app _after_ I perform some type of API call (in this case, just a simple CRUD operation to the DB or uploading a photo to storage) I return to the sign-in screen however the `signInOptions` don't render via `.

If I logout _without_ making any API call, the `FirebaseAuth` component and `signInOptions` render normally.

In both cases the `uiConfig` and `app.auth` are being passed properly to ``. I have no idea what to make of this.

If it helps, here is my auth screen component:

```
import * as React from 'react';
import * as firebaseui from 'firebaseui';
import * as firebase from 'firebase/app';
import FirebaseAuth from 'react-firebaseui/FirebaseAuth';
import * as app from '@/app';

class Authenticate extends React.Component {
render() {
const uiConfig = {
signInSuccessUrl: '/',
signInOptions: [
firebase.auth.EmailAuthProvider.PROVIDER_ID,
firebase.auth.GoogleAuthProvider.PROVIDER_ID
],
credentialHelper: firebaseui.auth.CredentialHelper.NONE
}

return



;
}
}

export default Authenticate;
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Authenticate component に記述されている logout フローを再現し、API 呼び出し後の logout と、API 呼び出し前の logout を比較します。認証状態の変更後に FirebaseAuth が remounting と sign-in オプションをどのように処理するかを確認します。両方の場合で設定済みのオプションがレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
authentication, frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。