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?

【supabase auth】ログイン時にエラーページに飛ばされる

Posted at

はじめに

以下のハンズオンでNext.js環境でのsupabase authを試していたところエラーが出たので記事にします。

問題

supabase authでログイン時にエラーページに飛ばされる。
コンソールにエラーログ出してみると以下が表示される。

Error [AuthApiError]: Email not confirmed

原因

認証のemailを使い捨てのメアド作成サイトで作っていたのですが、そこでsignupした後にアドレスの確認(?)をしていなかったみたいでそれでエラーが出てたみたいです。作成したアドレスでsignupした際に「Confirm Your Signup」という通知が来るのでそこから確認すればなおるはずです。

(ただログイン時に303のエラー(?)コードが出ているので後ほど調べてみます)

おわりに

参考にしていた動画と異なりturbopackでプロジェクトを作っていたのでディレクトリ構成が問題なのかと色々いじっていて解決に時間がかかってしまいました。最初にコンソールでエラーログ出して確認するべきでした。

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?