-
Notifications
You must be signed in to change notification settings - Fork 930
Allow FirstPartyAuth to specify a token factory func. #6495
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
Conversation
* Allow firstparty credentials to specify an authToken factory that is used in lieu of direct GAPI. * Remove stray import * Add return type to private method Co-authored-by: wu-hui <[email protected]>
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (149,797 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
private _headers = new Map(); | ||
|
||
constructor( | ||
private readonly gapi: Gapi, |
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.
Could this potentially be nullable? I think part of the intent here is to reduce the dep on gapi.js
for first party usage.
(I recognize that making this type nullable may cause a slight ripple effect in this file).
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.
I made it nullable, but I don't think it is of much difference..unless I misunderstood you.
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.
Looks good.
Based upon (#4773)