supabase / ssr

Supabase clients for use in server-side rendering frameworks.
MIT License
50 stars 6 forks source link

Add Remix app example #38

Open IHIutch opened 1 month ago

IHIutch commented 1 month ago

Improve documentation

Link

Add a "quick start" remix example like this page:

https://supabase.com/docs/guides/auth/server-side/nextjs

Describe the problem

While there are some snippets for using Supabase Auth with Remix, there's no practical example of how to put together a functional app.

Describe the improvement

I've created a Remix "starter" which aims to be a 1:1 copy of the Next.js starter. I'd be happy to adapt it as necessary or you can copy it as an installable "Remix starter" (is that a thing?).

https://github.com/IHIutch/remix-supabase

Let me know what you think would be best

Darmau commented 1 month ago

I really need this

charislam commented 1 month ago

Thanks @IHIutch this is awesome! I'm going to take some time to go over your repo, and see how it would be best to incorporate in docs! Will be back with some answers for you soon 😄

wong2 commented 1 month ago

Same here. I really need to learn how to avoid duplicate call to getUser from root loader and child loaders.

wong2 commented 1 month ago

https://supabase.com/docs/guides/auth/auth-helpers/remix?queryGroups=language&language=ts#syncing-server-and-client-state

Does anyone know if this document is still relevant?