API Connector User-Agent Flow Not Refreshing Token

I’m having an issue with the API Connectors User-Agent Flow authentication. Would appreciate any tips here.

This is how its setup.

Everything works fine when I’m authenticating the user. Redirect to Google authentication works fine and I get redirected back correctly. I also see that the connection has been established since I can see the Google accounts email in my Bubble app.

Issue is after a while it disconnects and I have to reauthenticate. This happens in production build with a live user. My Google Cloud application is also live (not with test user).

Any tips? Do I have something setup incorrectly in the API Connector? Thanks in advance!

This doesn’t refresh in API Connector, but it will for your users.