Because your webhook URL is “localhost”, and I think the n8n server is not on the same computer that’s running this web browser.
you need to set
WEBHOOK_URL=https://.com
I’m able to pass the auth for the Google Calendar Node for example using localhost callback with the same client ID and secret. I even tried hosting n8n with my custom node on render.com and I still getting the same error.