Login flow hangs indefinitely after browser authentication (Login fails)

I am reporting a blocking bug in the Antigravity desktop app where users are completely unable to sign into some of their accounts with subscription on Windows.

Steps to reproduce:

  1. Click “Sign in with Google” inside the app.

  2. Complete the authorization process successfully in the browser.

  3. Return to the Antigravity app.

  4. The app hangs indefinitely and remains stuck on the login screen.

Root Cause: Running the app with --inspect=9229 reveals a silent background crash during the token exchange: [uncaught exception in main]: TypeError: Do not know how to serialize a BigInt

The app crashes because JSON.stringify() natively lacks support for serializing BigInt values returned during the token exchange. Instead of tracking down and patching individual function calls in the obfuscated code, you can apply a global prototype patch.

The Fix:

  1. Open the main script in any text editor: %localappdata%\Programs\Antigravity\resources\app\out\main.js

  2. Add this single line at the very top (line 1):

    BigInt.prototype.toJSON = function() { return this.toString() };
    
    
  3. Save the file and restart Antigravity. The standard “Sign in with Google” flow will now complete successfully.

Hi @Chat ,

Thank you for bringing these concerns to our attention. Please be assured that I have shared your feedback with our internal team for further review.

1 Like