Anvil.google.auth.login() not working after reset_session()

I have been using anvil.google.auth.login() in my project since early 2024. Per the instructions, I added NO additional “Google” configuration, as it seems to work via an embedded, “Anvil” client ID and secret.

In early December 2025 it stopped working, throwing the exception

ExternalError: Error getting user info: Rejecting mismatched OAuth Info

Code Sample:

anvil.google.auth.login()

Thanks for reporting this, we think we have identified the problem.

Can you provide your App ID to help us confirm the issue?

You can find this in your app under the General Settings:

Please either post it here or by email to support@anvil.works.

Hi @Coloroco

Actually, we’ve now reproduced this issue, so there’s no need to send over your app ID. It’s triggered when using anvil.server.reset_session() before initiating login, which is clearly a bug on our side. We’re looking into that, and will post here when we have an update.

1 Like

Hi @Coloroco,

We’ve now got this pretty well narrowed down, and a fix is on its way.

In the meantime, you can dodge this issue by not calling anvil.server.reset_session() at startup, at least until we ship a more durable fix.