Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

signInWithCredential get stuck

オープン
#3,646 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
angular, firebase, typescript

調査の方向性

auth.service.ts の loginWithGoogle メソッドから開始し、指定された Angular、Firebase、Ionic、Capacitor のバージョンでネイティブパスを再現します。SocialLogin.login、GoogleAuthProvider.credential、signInWithCredential の周辺の動作を比較し、デバイスが応答しなくならないこと、および失敗時にエラーが発生することを確認します。

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

説明

Version info

"@angular/core": "19.2.3"
"@angular/fire": "^19.0.0",
"firebase": "^10.14.1",
"@ionic/angular": "^8.3.4",
"@capacitor/core": "^6.1.0",

Code

import { Auth, GoogleAuthProvider, signInWithCredential, signInWithPopup, UserCredential } from '@angular/fire/auth';

private auth = inject(Auth); //* Firebase Auth instance

async loginWithGoogle(): Promise<UserCredential> {
        SummonLogger.trace('auth.service.ts', 'loginWithGoogle');
        try {
            const provider = new GoogleAuthProvider();

            if (!Capacitor.isNativePlatform()) {
                return signInWithPopup(this.auth, provider);
            } else {
                // Native auth (capacitor)
                await this.initGoogleProvider();
                await this.clearGoogleSocialLoginSession();
                const res = await SocialLogin.login({ provider: 'google', options: {} });
                this.provider = 'google';
                const googleResult = res.result as GoogleLoginResponse;
                const credential = GoogleAuthProvider.credential(googleResult.idToken);
                return await signInWithCredential(this.auth, credential);
            }
        } catch (error) {
            SummonLogger.error('auth.service.ts', 'loginWithGoogle() - error', error);
            return Promise.reject(error);
        }
    }

Issue

When the signInWithCredential method is invoked, the device becomes unresponsive, seemingly freezing in place. Despite this halt in functionality, no error messages or alerts are displayed to indicate the problem.

主要言語
TypeScript
スター
7.8k
フォーク
2.2k
平均マージ
3日 6時間
マージ済み PR(30日)
5

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/angularfire のほかの issue

angular/angularfire の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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