From fe8d95a8fc166a98f949c20394749d3549c22fff Mon Sep 17 00:00:00 2001 From: TingluoHuang Date: Wed, 25 Aug 2021 21:53:12 -0400 Subject: [PATCH] lint --- packages/core/src/oidc-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/oidc-utils.ts b/packages/core/src/oidc-utils.ts index 68d3a370..e33da5f1 100644 --- a/packages/core/src/oidc-utils.ts +++ b/packages/core/src/oidc-utils.ts @@ -68,7 +68,8 @@ export class OidcClient { // New ID Token is requested from action service let id_token_url: string = OidcClient.getIDTokenUrl() if (audience) { - id_token_url = `${id_token_url}&audience=${encodeURIComponent(audience)}` + const encodedAudience = encodeURIComponent(audience) + id_token_url = `${id_token_url}&audience=${encodedAudience}` } debug(`ID token url is ${id_token_url}`)