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

More than 1 year has passed since last update.

[回避方法] next-authとFirebaseでGoogleログインすると500エラーが出る

Posted at

はじめに

next-authでGoogleログインを実装したときに躓いたことをまとめます
注意 : この記事は根本解決していないため現在も原因を探っています

問題

next-authを使ってGoogleでログインができることをローカルでたしかめたアプリケーションをFirebaseでデプロイしました

しかし、なぜか以下のエラーが出ました

リクエスト URL:
https://settlement-f6be6.web.app/api/auth/signin/google?prompt=login
リクエスト メソッド:
POST
ステータス コード:
500 Internal Server Error
リモート アドレス:
[2620:0:890::100]:443
参照ポリシー:
strict-origin-when-cross-origin

わかったこと

FirebaseではなくVercelにデプロイしたところうまくログイン認証することができたのでなにかFirebaseに起因してそうなところまでわかりました

解決方法

現在探していますので、わかる方はコメントください

おわりに

とりあえずわかっていることと回避できた方法だけを記事にしました
解決方法も分かり次第こうしんしていきます

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