Previous module's mutations/queries are now in a service.server (collocate all the module's service in one place)
Auth session is reworked to align with folder structure changes
requireAuthSession no longer call Supabase Auth API by default to verify user access token (it's still safe, we signed our cookie)
requireAuthSession takes a new optional param called verify (boolean) to work as before 😉
No more needing to start a shadow database to create a Prisma migration (I don't know why maybe it's thanks to Supabase). It results in a huge time saving!
Major changes :
service.server
(collocate all the module's service in one place)requireAuthSession
no longer call Supabase Auth API by default to verify user access token (it's still safe, we signed our cookie)requireAuthSession
takes a new optional param calledverify
(boolean) to work as before 😉