How to handle session storage with CMP
Hi there!
We started to use supabase-kt library in our Kotlin Multiplatform Project.
I am trying to find a bit more information about how the auth works behind the scenes.
Here is our useCase:
My questions are:
I would also appreciate some instructive resources related deeper understanding of the supabase-kt library.
We started to use supabase-kt library in our Kotlin Multiplatform Project.
I am trying to find a bit more information about how the auth works behind the scenes.
Here is our useCase:
- When user opens the app, they are either redirected to Auth page or Login. This is based on the session status check obtained from the supabase sdk.
My questions are:
- How is the supabase sdk handling the session storage and its persistance, can/should this be configured?
- How often is the sessionStatus flow emitted?
- Do I need to do any token validation manually? - Such as saving token and refreshing it.
I would also appreciate some instructive resources related deeper understanding of the supabase-kt library.