OTP Auth on local dev environment.
Context: The past three years I've been building my app using Supabase online dashboard. Now I'm trying to set up a local dev environment to leave the remote project for staging. I've managed to pull the public schema but I can't test if the local project works without setting up again the OTP Auth which is not pulled from the remote even by using
--schema auth. I couldn't find any docs or tutorial on how to set this on a local project and I can't do it as if it was a remote project since Supabase Studio doesn't have the same Authentication settings as in the web. What can I do?2 Replies
All auth settings are done in the .toml file for local dev. https://supabase.com/docs/guides/local-development/managing-config
Thanks! I've managed to get OTP working. Now my problem is that in my remote project I wws using the User Managment Starter SQL quickstart which automatically created a row in the profiles table when a new user was created. I now that in my local project I can set that again manually, but I don't get why if I pulled the auth schema from my remote project wasn't that trigger and function pulled too.
I just pulled auth schema again and now the trigger is working.