LoginSignup
2
1

More than 3 years have passed since last update.

firebase authで新規ユーザーがなぜか登録できないとき

Last updated at Posted at 2020-06-12

最初に結論

firebase authで複数のログイン方法をテストする際、元サービスでのメールアドレスが被っていないか確認しましょう

例) GoogleとGitHubでログインのテストをする

  signInWithGoogle () {
    const provider = new firebase.auth.GoogleAuthProvider()
    firebase.auth().signInWithRedirect(provider)
  },
  signInWithGithub () {
    const provider = new firebase.auth.GithubAuthProvider()
    firebase.auth().signInWithRedirect(provider)
  }

firebase authの user は各サービスから取得したメールアドレスで登録されています。このように複数サービスを設定する場合、アドレスが被っているとユーザーが登録できなくなります。テストする際はメールアドレスが被っていないか気をつけましょう。

2
1
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
2
1