Skip to content

Commit 5bd0d92

Browse files
committed
fix : test
1 parent b71235e commit 5bd0d92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gcp_auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export class GoogleCloudPlatformAuth implements Authenticator {
7676
throw new Error('Failed to refresh token: ' + (err as Error).message);
7777
}
7878

79+
// remove leading and trailing `'` from the output
80+
output = output.toString();
81+
output = output.replace(/'/g, '');
82+
output = output.replace(/\'$/, '');
7983
const resultObj = JSON.parse(output);
8084

8185
const tokenPathKeyInConfig = config['token-key'];

0 commit comments

Comments
 (0)