offline user session (not storage)
I understand, powersync, and other options exist for off-line storage sync exist.
I’m curious about a user going off-line who was previously logged in, the session cannot be validated because the refresh token cannot be refreshed. AFAIK, the Supabase client does not cache, and therefore cannot ping server to get new session.
For now, I am just storing a user and I have conditional checks to only refresh if there is a connection. Obviously this is not super secure but I am making assumption that if these exist, they had a vakid token at some point.
How do you handle user session for off-line modes? Does PowerSync handle Auth too?
I’m curious about a user going off-line who was previously logged in, the session cannot be validated because the refresh token cannot be refreshed. AFAIK, the Supabase client does not cache, and therefore cannot ping server to get new session.
For now, I am just storing a user and I have conditional checks to only refresh if there is a connection. Obviously this is not super secure but I am making assumption that if these exist, they had a vakid token at some point.
How do you handle user session for off-line modes? Does PowerSync handle Auth too?