Best Practices for Keeping a Bubble User Logged in Indefinitely with Xano Auth Token

Hey!

I’m looking for advice on how to keep a Bubble user logged in for as long as possible. My Xano auth token is set to never expire, and I’m using the Xano Connector plugin in Bubble.

I was inspired by a video from Eli (the Xano Connector plugin author), where he suggests saving the auth token on the current user in Bubble (which he explains is being saved as a cookie)

His approach involves accessing the token from the bubblecurrent user across the app and then deleting it during logout

However, I’d like to take it a step further and keep the user logged in indefinitely by never deleting the auth token from the current user.

Does anyone have thoughts on this approach? Are there any considerations I should keep in mind, such as security or potential pitfalls?

This is the part in Eli's video where he explains this method: https://youtu.be/1xs48PNhmB0?si=097UTBE2dqaDP8ft&t=1512

Thanks!!

5 replies