0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

firebaseを利用してAuth認証をデプロイ先でも利用したい。エラー解決

Posted at

はじめに

ローカルでgoogleの認証が使えたのにデプロイ先で以下のエラーが出る際の解決記事です。

image.png

解決方法

画像の最後にdomainという文字があるのでだいたい見当つきそうですが
ドメインの認証ができていないために起こっているエラー。

ローカルでできたのはローカルのドメイン=localhostは認証されているから。

Authenticationのページに遷移して
image.png

設定タブの認証ドメインを押下
image.png
デフォルトでlocalhostがいることが確認できると思います。

個々の認証ドメインの追加を押下してデプロイ先のドメインを追加してあげましょう。
これでデプロイ先からでもAuth認証が使えるようになるはずです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?