I’ve got a Gmail API set up in Bubble using OAuth2 User-Agent Flow. It was working perfectly before, but recently started returning a 401 Invalid Credentials error. The connector shows “Your token is not valid any more. You should sign up again in run mode,” but when I click my “Connect Gmail” button, the Google OAuth popup doesn’t appear — it just throws the same 401 error.
The connector is fully configured with correct App ID, secret, scopes, and redirect URLs. It uses https://oauth2.googleapis.com/token and https://accounts.google.com/o/oauth2/v2/auth. I know the token has simply expired, but Bubble isn’t launching the OAuth flow to refresh it.
Has anyone seen this before, and how can I force Bubble to prompt the Google sign-in again to refresh the token without rebuilding the whole connector?
Bubble doesn’t refresh token for API connector itself, only for “real” user (not the user you used to initialize the API connector). Test with a real user without debug mode.