googleapis / google-auth-library-nodejs

🔑 Google Auth Library for Node.js
Apache License 2.0
1.73k stars 381 forks source link

Occasional timeout when requesting Google ID Token Verify #1764

Closed KIMBEOBWOO closed 8 months ago

KIMBEOBWOO commented 8 months ago

Environment details

Steps to reproduce

referred to that

const client = new OAuth2Client();
const ticket = await client.verifyIdToken({
  idToken: idToken,
  audience: <<client_id>> // Specify the CLIENT_ID of the app that accesses the backend
});
const payload: TokenPayload | undefined = ticket.getPayload();

Once a timeout occurs, it does not resolve naturally, and if the server IP address is replaced, it will operate normally again for a certain period of time.

danielbankhead commented 8 months ago

Thanks, this could be related to:

danielbankhead commented 8 months ago

We’ll keep this tracked in the other issue - and resolve soon.