LoginSignup
0
0

More than 1 year has passed since last update.

FirebaseのGoogleアカウントでのログイン機能の実装とユーザー情報をSet

Last updated at Posted at 2022-05-11

概要

今回はFirebaseのAuthenticationの中の一つのGoogleによる認証機能を設定します。認証だけ設定するというパターンはあまりないと思うので、加えてFirebaseのDatabaseにユーザー情報をセットするとこまで行きます。

Firebaseのセットアップは済んでいるものとします。

プロバイダにGoogleを追加

まずはFirebaseのコンソールに移動して、対象のプロジェクトのAuthenticationを開きましょう。

するとログインプロバイダが設定できますので次の2ステップでFirebaseがの処理はとりあえず終了です。

①プロバイダでGoogleを選択

②プロジェクトのサポートメールに任意のgoogleアカウントを設定して保存し、有効にする

スクリーンショット 2022-05-11 23.49.55.png

#Reactでログイン時の処理を設定
 ```

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0