Hello Bubblers.
My Bubble app is using Xano, which for each user making an API request has to parse the user’s bearer token in the API header request, to return what data they can see. This session time is configurable, currently set to a day.
Currently I don’t have an auto session expiry logout for my Bubble app, what this means is when the user refreshes the page in the app after initially requesting their bearer token, they are presented with a blank screen where their Xano data should be displayed.
Wondering best approach to handle this, what would you suggest:
- Implement Bubble session and auto logout, expiring user before the timeout for Xano (currently 1 day), however what happens if they’re still active and using the app?! Worst UX but easier implementation.
- Implement functionality to automatically obtain new bearer token when Xano expires and resubmit the API request (don’t like the idea of the errors in Flusk / NcScale I’ll get).
- Implement functionality to auto refresh the user’s token if still active, before it expires in collaboration with a session timeout if not active (seems like a overly complicated approach, but better for UX).
Any other solutions or suggestions?
Thank you
Chris