KindeK
Kinde3mo ago
4 replies
Martin

Recommended approach for handling long lived tabs

My understanding is that when a user logs in with Kinde they are issued a short lived access token and a medium lifetime refresh token. Once the refresh token has expired, the user is effectively no longer logged in.

Whats is the recommended approach for handling long lived tabs? If a user opens a tab to my Kinde authenticated website, logs in, then walks away from their laptop for a week, and comes back to the tab - what should happen next? One option would be to automatically / with a prompt redirect them to login again. However, if they have any clientside unsaved changes then this risks losing those changes. Is there any way to support logging the user back in without them having to be redirected back to Kinde?
Was this page helpful?