GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Adds token refresh to HTTP example. by gguuss · Pull Request #517 · GoogleCloudPlatform/nodejs-docs-samples Conversation
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #517 +/- ## ======================================= Coverage 97.16% 97.16% ======================================= Files 13 13 Lines 458 458 ======================================= Hits 445 445 Misses 13 13 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM (other than some nitpicking) if tests pass.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| iatTime = parseInt(Date.now() / 1000); | ||
| console.log(`\tRefreshing token after ${secsFromIssue} seconds.`); | ||
|
|
||
| authToken = createJwt(argv.project_id, argv.private_key_file, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nit: this feels like it should be a one-liner.
You can get it under 80 characters using camel case (like the non-IoT samples) and shortening privateKeyFile to keyFile. (Worst case scenario, it's probably fine to go a little over 80 characters unless the linter says not to.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Adds token refresh to HTTP example. * Review feedback
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.