Firebase auth token expiry

Integrations

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 API queries fail (I'm using BuildShip Firebase Auth Trigger). 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.

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!

What have you tried so far?

Thinking about a custom action querying a new token using the refresh token, but not sure it's the best approach.

Did you check FlutterFlow's Documentation for this topic?
Yes
1