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 b71235e commit 5bd0d92Copy full SHA for 5bd0d92
src/gcp_auth.ts
@@ -76,6 +76,10 @@ export class GoogleCloudPlatformAuth implements Authenticator {
76
throw new Error('Failed to refresh token: ' + (err as Error).message);
77
}
78
79
+ // remove leading and trailing `'` from the output
80
+ output = output.toString();
81
+ output = output.replace(/'/g, '');
82
+ output = output.replace(/\'$/, '');
83
const resultObj = JSON.parse(output);
84
85
const tokenPathKeyInConfig = config['token-key'];
0 commit comments