UserRefreshClient constructor should set credentials.refresh_token #770
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When I create UserRefreshClient by constructor, I've get error:
But when I load credentials by calling
fromJSON
method, all works correctly.I looked at source code and find difference between this two ways:
fromJSON
method setcredentials.refresh_token
property, but constructor don't:https://github.com/googleapis/google-auth-library-nodejs/blob/v5.1.1/src/auth/refreshclient.ts#L111
The text was updated successfully, but these errors were encountered: