How do I configure redirection for a password reset page

I have a web app using Vue 3 with custom account management pages: email verification page and password reset page. The problem is this:

1) User creates account / requests password reset email
2) User clicks email link to go to custom account management page
3) User is redirected to account management page for a split second
4) User is authenticated immediately thereafter and therefore redirected to a page requiring authentication

With this setup, the user is unable to reset their password, and I'm unable to use the custom pages.

Important notes:
  • I'm using redirectTo inside the "resetPasswordForEmail" method, and I'm using it correctly.
  • I have the proper localhost URL inside the Supabase auth dashboard
  • I'm using Vue router and doing all routing inside App.vue
Please help me resolve this
Was this page helpful?