-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V3 is coming #69
Comments
Hey! nice stack dude! Would you consider following the docs here https://supabase.com/docs/guides/auth/auth-helpers/remix and using the remix helper library for supabase? (not sure if this existed when you started) |
Thanks 😇 I have one with only Supabase : https://github.com/rphlmr/supa-remix-stack but it is not up to date 😅 |
Awesome! i'll check it out - I also noticed your benchmarks around using RLS with Supabase... thats a real kicker 200ms delay is not nice. Do you know if theres a way to avoid going through Gotrue with Supabase, I doubt it - but just wondering! Really want to use RLS with managed Postgres, just exploring my options at the minute |
Since this stack, I have built a SAAS project. |
I plan to make a new stack around Supabase, with Drizzle ORM (faster than Prisma, true SQL) and Realtime 🫢 |
I’ll try to use RLS server side in pure SQL when I have time. |
@rphlmr I appreciate that! I'll have a look into it myself in the mean time |
Discussed in #66
Originally posted by rphlmr February 17, 2023
Hello there,
I'll publish a v3 with some breaking changes on the "auth module".
I have launched a new stack with a new way to commit auth session and I want to have the same pattern on every stack I maintain :)
Nothing hard to understand but a major change:
requireAuthSession
will no more magically refresh the session inloader
.Currently:
loader
function, If the access_token expires, I refresh it and reload theloader
.action
function, because we can't reload it, you have to commit the session in everyreturn json
.In future, you will have to commit the session in
loader
andaction
.Because writing the full header is too long, I have imagined something and will provide a
response
helper to handle that for you.Spoilers:
authSession
will have acookie
property that is nothing more than the result ofsessionStorage.commitSession(session, { maxAge: SESSION_MAX_AGE, })
.Then,
response.ok
orresponse.error
will put this cookie in headers :)You can check what is coming here: https://github.com/rphlmr/supa-stripe-stack
The text was updated successfully, but these errors were encountered: