Best practices for Supabase in the server

Hello,
I'm currently rewriting an app of mine (Sveltekit SSR) to an SPA so I can turn it to a mobile app soon and create a sharable API between the two powered by Supabase, the resources on how to do this securely are hard to come by so I decided to come here and ask!

My main questions are:
  • How can you handle authentication and session management?
  • What's the best way to check for the validity of a user's session?
If you got any tips, please share them that would be very helpful!
Was this page helpful?