Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: getOptions() no longer accepts GoogleAuthOptions #749

Merged
merged 8 commits into from
Jul 23, 2019

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Jul 19, 2019

BREAKING CHANGE: getOptions() no longer accepts GoogleAuthOptions, preventing a variety of side effects caused by credentials that have already been stored in cache. new GoogleAuth({}) should instead be used to customize options, or to instantiate multiple clients. fromJSON() has also been made idempotent (it no longer changes the cache).

fixes #390

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 19, 2019
@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #749 into master will decrease coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #749      +/-   ##
==========================================
- Coverage   84.41%   84.23%   -0.18%     
==========================================
  Files          17       17              
  Lines         943      945       +2     
  Branches      210      208       -2     
==========================================
  Hits          796      796              
- Misses         87       88       +1     
- Partials       60       61       +1
Impacted Files Coverage Δ
src/auth/googleauth.ts 85.29% <100%> (-0.73%) ⬇️

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 90c563f...73389cf. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #749 into master will decrease coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #749      +/-   ##
==========================================
- Coverage   84.41%   84.26%   -0.15%     
==========================================
  Files          17       17              
  Lines         943      947       +4     
  Branches      211      210       -1     
==========================================
+ Hits          796      798       +2     
- Misses         87       88       +1     
- Partials       60       61       +1
Impacted Files Coverage Δ
src/auth/googleauth.ts 85.41% <100%> (-0.61%) ⬇️

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 9f31ed7...9217e2d. Read the comment docs.

@bcoe bcoe force-pushed the no-side-effects branch from 998fb28 to cbda12a Compare July 19, 2019 21:03
@bcoe bcoe force-pushed the no-side-effects branch from cbda12a to bfa3335 Compare July 19, 2019 21:03
@bcoe bcoe merged commit ba58e3b into master Jul 23, 2019
@bcoe bcoe deleted the no-side-effects branch July 23, 2019 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GoogleAuth ignores credentials passed to it in getClient in favor of cached credentials
5 participants