GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adds token refresh to HTTP example. by gguuss · Pull Request #517 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@gguuss

@gguuss gguuss commented Nov 2, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gguuss
Adds token refresh to HTTP example.
6dbbbc1
@codecov

codecov Bot commented Nov 2, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #517 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 594525a...5a28248. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ace-n
ace-n approved these changes Nov 3, 2017
View reviewed changes

@ace-n ace-n left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/cloudiot_http_example_nodejs.js Outdated
iatTime = parseInt(Date.now() / 1000);
console.log(`\tRefreshing token after ${secsFromIssue} seconds.`);

authToken = createJwt(argv.project_id, argv.private_key_file,

@ace-n ace-n Nov 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gguuss gguuss Nov 3, 2017

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gguuss
Review feedback
5a28248
@gguuss
gguuss merged commit 8e2b651 into master Nov 3, 2017
@gguuss
gguuss deleted the iot-http-refresh branch November 8, 2017 16:53
ace-n pushed a commit that referenced this pull request Dec 4, 2017
@gguuss Ace Nassri
Adds token refresh to HTTP example. (#517)
5b05641
* Adds token refresh to HTTP example.

* Review feedback
@snyk-bot snyk-bot mentioned this pull request Jan 31, 2020
[Snyk] Fix for 1 vulnerabilities leejh3224/nodejs-docs-samples#158
Open
@snyk-bot snyk-bot mentioned this pull request Dec 23, 2020
[Snyk] Security upgrade @google-cloud/spanner from 2.2.1 to 3.0.0 leejh3224/nodejs-docs-samples#289
Open
@snyk-bot snyk-bot mentioned this pull request Sep 6, 2021
[Snyk] Security upgrade @google-cloud/spanner from 2.2.1 to 3.0.0 leejh3224/nodejs-docs-samples#365
Open
@snyk-bot snyk-bot mentioned this pull request Jan 12, 2022
[Snyk] Security upgrade @google-cloud/spanner from 2.2.1 to 3.0.0 leejh3224/nodejs-docs-samples#429
Open
@snyk-bot snyk-bot mentioned this pull request Feb 10, 2022
[Snyk] Security upgrade @google-cloud/spanner from 2.2.1 to 3.0.0 leejh3224/nodejs-docs-samples#462
Open
This was referenced Apr 7, 2022
[Snyk] Security upgrade @google-cloud/debug-agent from 2.1.3 to 3.0.0 ninadhatkar/nodejs-docs-samples#201
Open
[Snyk] Security upgrade @google-cloud/debug-agent from 2.1.3 to 3.0.0 ninadhatkar/nodejs-docs-samples#203
Open
@NimJay NimJay mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-language #2827
Merged
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@release-please
chore: release 4.2.0 (#517)
4958745
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@release-please @NimJay
chore: release 4.2.0 (#517)
a89b84a
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@release-please
chore: release 2.4.0 (#517)
bf8e619
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This was referenced Nov 14, 2022
migrate code from googleapis/nodejs-compute #2846
Closed
migrate code from googleapis/nodejs-compute #2853
Merged
@kweinmeister kweinmeister mentioned this pull request Nov 18, 2022
migrate code from googleapis/nodejs-text-to-speech #2872
Merged
kweinmeister pushed a commit that referenced this pull request Nov 18, 2022
@release-please
chore: release 3.2.2 (#517)
aebfd85
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 21, 2022
@release-please Ace Nassri
chore: release 2.4.0 (#517)
bd07163
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 21, 2022
@release-please Ace Nassri
chore: release 2.4.0 (#517)
ee60a11
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@ace-n ace-n ace-n approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gguuss @ace-n
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.