create-expo-stack icon indicating copy to clipboard operation
create-expo-stack copied to clipboard

Supabase integration files are not created despite being listed in the setup summary

Open andgabx opened this issue 5 months ago • 1 comments

When using create-expo-stack with the --supabase flag, the setup successfully creates the lib/supabase.ts file with the client initialization, but it does not seem to create the other necessary files for a functional authentication setup, such as an AuthProvider.tsx in a providers directory. It also doesn't modify the root _layout.tsx with the required logic to handle auth state changes and route protection. Is this current behavior the intended functionality? Or should I expect other files, like an AuthProvider context and a pre-configured root layout, to be generated as well for a more out-of-the-box authentication flow?

andgabx avatar Jul 03 '25 23:07 andgabx

@andgabx Apologies for the delayed response, supabase configuration within rn-new has always been meant to be minimal given the various ways people opt to use it. It's possible that the base configuration has changed since this configuration was set up. If you're following some kind of guide, can you provide a link so I can look into potentially updating the configuration? PRs are also always welcome :)

danstepanov avatar Sep 13 '25 02:09 danstepanov