Firebase auth token expiry

Best Practices

I'm currently working on an app where the authentication is set up through FlutterFlow (mainly for initial convenience), but all other communications go through a separate backend. I'm running into a frustrating issue with Firebase auth key expiry.

The problem is that while my pages require authentication, the users aren't actually logged out when the token expires—just the queries fail. It's mostly annoying because it creates a bad user experience where they think they are still logged in, but the data isn't loading due to expired tokens.

I know for web there's a simple way to refresh the token via this method: User.refreshToken, but I'm curious how others are dealing with this in a FlutterFlow setup, especially when combining with custom backends.

Are you refreshing tokens automatically, or using some other workaround to prevent these annoying expired queries? Would love to hear what’s been working for you!

2