We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac249f5 commit 043d53bCopy full SHA for 043d53b
1 file changed
patches/google-auth-library#9.1.0.patch
@@ -2,6 +2,17 @@ Index: \google-auth-library\build\src\auth\oauth2client.js
2
===================================================================
3
--- \google-auth-library\build\src\auth\oauth2client.js
4
+++ \google-auth-library\build\src\auth\oauth2client.js
5
+@@ -191,9 +191,9 @@
6
+ e.message = JSON.stringify(e.response.data);
7
+ }
8
+ throw e;
9
10
+- const tokens = res.data;
11
++ const tokens = JSON.parse(res.data);
12
+ // TODO: de-duplicate this code from a few spots
13
+ if (res.data && res.data.expires_in) {
14
+ tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000;
15
+ delete tokens.expires_in;
16
@@ -731,9 +731,9 @@
17
OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth';
18
/**
0 commit comments