From f17c0d32ae7a95aa8405280cecd6dcfa4719f9eb Mon Sep 17 00:00:00 2001 From: julesair Date: Sun, 3 Apr 2022 12:34:50 +0200 Subject: [PATCH] encode state in authorization uri --- src/ApiClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiClient.js b/src/ApiClient.js index 91f32fdb7..1b022a66d 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -732,7 +732,7 @@ "&scope=" + formattedScopes + "&client_id="+ clientId + "&redirect_uri=" + encodeURIComponent(redirectUri) + - (state ? "&state=" + state : ''); + (state ? "&state=" + encodeURIComponent(state) : ''); }; /**