From 5f855f2eeb6db9a727eb86197230ad6a2b46dce7 Mon Sep 17 00:00:00 2001 From: Nipun Thennakoon Date: Sun, 5 Nov 2023 23:18:45 +0530 Subject: [PATCH] Fix lint issues. --- lib/src/core/authentication-core.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/core/authentication-core.ts b/lib/src/core/authentication-core.ts index ac98034d..c5ee23de 100644 --- a/lib/src/core/authentication-core.ts +++ b/lib/src/core/authentication-core.ts @@ -556,7 +556,8 @@ export class AuthenticationCore { "No sign-in redirect URL has been found either. " ); } - const queryParams = new URLSearchParams(); + const queryParams: URLSearchParams = new URLSearchParams(); + queryParams.set("post_logout_redirect_uri", callbackURL); if (configData.sendIdTokenInLogoutRequest) { @@ -575,6 +576,7 @@ export class AuthenticationCore { } queryParams.set("state", SIGN_OUT_SUCCESS_PARAM); + return `${logoutEndpoint}?${queryParams.toString()}`; }