Best Practices for Supabase Auth Session Management in TanStack Start #3087
Unanswered
tannerhladek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm exploring the best way to handle Supabase auth server session management within a TanStack Start app. Supabase recommends creating a middleware function that runs on every request to keep the session cookie up to date on the client side. For NextJs, they recommend the below:
The main questions I have are:
I'm especially interested in understanding the preferred approach for maintaining session sync between the server and the client while adhering to best practices.
Any insights or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions