googleapis / googleapis/google-cloud-node

timeout field isn't being considered while fetching the Bearer token

Open
#7,800 8 comments 0 reactions 0 assignees View on GitHub
library: google-cloud-node-core priority: p3 type: feature request
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

#### Environment details

- OS: Linux
- Node.js version: 10
- npm version: 6
- `google-auth-library` version:5.10.1

#### Steps to reproduce

1. ? Set timeout to 3secs
2. ? Make a million calls in an hour

You would see that the response time will be greater than 15secs or more at least for few requests as timeout is being considered only validating the recaptcha token not during fetching the Bearer token.

We are using JWT to validate reCaptcha token and it's taking more than 15sec to get the response for few requests inspite of the timeout being set to 3 ms.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.