Skip to content

Firebase Google Login - General Setup

GitHub

このガイドでは、Capacitor Social Login プラグインを使用して、Google Sign-In を Firebase Authentication に統合する方法を説明します。この設定では、モバイルプラットフォームでネイティブの Google Sign-In を使用しながら、バックエンドの認証に Firebase Auth を活用できます。

  1. 以下の手順に従ってください。 https://console.cloud.google.com
  2. 使用するプロジェクトを選択してください。 Firebase Project セレクター
  3. 以下のメニューに移動してください。 Authentication メニュー
    1. Click on build
    2. Click on Authentication
    Firebase Authentication Menu
  4. Click on the Get started button Firebase Get Started Button
  5. Select EITHER Email/Password AND Google OR Google ONLY Firebase Select Email/Password and Google Button Firebase enable email authentication Firebase save enable google authentication Firebase enable add provider button Firebase add Google provider after having added email provider
  6. Enable the Google provider Firebase enable google authentication
  7. __CAPGO_KEEP_0__をサポート用メールに追加 Firebaseのサポート用メールを追加 Firebaseのサポート用メールを追加(2)
  8. 変更する Public-facing name for project. Firebaseのパブリックフェイシング名を変更
  9. クリックして Save ボタン Firebaseのパブリックフェイシング名を保存

🎉と表示されます。Google Sign-InをFirebase Authenticationで有効にしました

Firebase Google Login - General Setup

Firebase Google Login - General Setup

Firebase Google Login - General Setupを使用している場合 Firebase Google Login - General Setup Firebase Google Login - General Setupを使用して Using @capgo/capacitor-social-login @capgo/capacitor-social-login @capgo/capacitor-social-login @capgo/capacitor-social-login @capgo/capacitor-passkey @capgo/capacitor-passkey @capgo/capacitor-native-biometric Capacitorの実装詳細については@capgo/capacitor-native-biometricにあります。 2要素認証 Capacitorの実装詳細については2要素認証にあります。