V3 is coming #66
Pinned
rphlmr
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
requireAuthSessionwill no more magically refresh the session inloader.Currently:
loaderfunction, If the access_token expires, I refresh it and reload theloader.actionfunction, 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
loaderandaction.Because writing the full header is too long, I have imagined something and will provide a
responsehelper to handle that for you.Spoilers:
authSessionwill have acookieproperty that is nothing more than the result ofsessionStorage.commitSession(session, { maxAge: SESSION_MAX_AGE, }).Then,
response.okorresponse.errorwill put this cookie in headers :)You can check what is coming here: https://github.com/rphlmr/supa-stripe-stack
Beta Was this translation helpful? Give feedback.
All reactions