Today out of the blue my login endpoint stopped working, and it seemingly never returned.
After a few minutes of debugging, I realised the verifyIdToken method was still running.
For some reason, the library tries to fetch certificates without any sort of warning or timeout for this, assuming the server will always be able to respond.
Today out of the blue my login endpoint stopped working, and it seemingly never returned. After a few minutes of debugging, I realised the
verifyIdToken
method was still running. For some reason, the library tries to fetch certificates without any sort of warning or timeout for this, assuming the server will always be able to respond.Then, I finally got this error:
It is pretty much the same as googleapis/google-api-nodejs-client#3028.
I don't think it would be that hard to set a timeout on things like this, but maybe there's a reason for it? Who knows
Environment details
google-auth-library
version: 9.6.3Steps to reproduce
client.verifyIdToken()
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!