nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.39k stars 107 forks source link

Adds Supabase as Auth Provider + Prettier format for the generated files #137

Open OmegaHawkeye opened 4 months ago

OmegaHawkeye commented 4 months ago

This PR adds 2 things:

  1. Supabase as a new Auth Provider
  2. Either reads the users prettier config file or generates a default prettier config file and also formats the generated files based on the prettier config.

I had to convert many functions to async ones but it still works as far as I tested ( add and generate command still work ).

Would close this issue: #49.

Btw to get RLS with Supabase and Drizzle generally I think we have to use auth.uid()::text in the RLS editor. It worked like that then but not without.

Result: kirimase_supabase_marked

nicoalbanese commented 4 months ago

Such a great idea re prettier!

OmegaHawkeye commented 4 months ago

This should now work as expected with Supabase as an Auth Provider and prettier for formatting. I also added zod-form-data as form validation library for the server actions for supabase auth.

OmegaHawkeye commented 4 months ago

PR branch is up to date with this master branch and also includes changes for #145. Would be ready for merge.

OmegaHawkeye commented 3 months ago

@nicoalbanese Just curious as to why this pr isn't getting merged after being ready and up to date for 2 weeks or so already?

trevorpfiz commented 3 months ago

@OmegaHawkeye thank you for this, really looking forward to using it!

thecmdrunner commented 1 month ago

Any movement on this? Supabase seems like a really good addition!