Supabase Authentication

Hi all,

I am trying to build out user roles for my website V0 with Supabase, I am having a hard time accessing my admin portal via /admin-signup. However, when I enter that address, I am brought back to the /login screen where I receive the invalid credentials message. Am I doing something wrong?

It sounds like your admin-signup page is being restricted only to admin users. If you have separate admin and non-admin signup pages, you may just need to tell v0 that admin-signup needs to be publicly available

It can however be a security risk to have any application code that assigns an admin role that’s accessible to non-admin users. It’s usually better to pick your first admin directly in the supabase dashboard (probably by assigning a custom claim but it depends on how v0 implemented it for you). Then you can have admin-only pages in your app for further management, like adding more admins