From 3fa6ba5d79afe9c6957e9f63af18225127d4da01 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Wed, 2 Dec 2020 13:25:04 +0100 Subject: [PATCH] Attempt to fix #1256 --- src/UserManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UserManager.js b/src/UserManager.js index d97fd4ef..44453b9d 100644 --- a/src/UserManager.js +++ b/src/UserManager.js @@ -424,7 +424,9 @@ export class UserManager extends OidcClient { } _signinCallback(url, navigator) { Log.debug("UserManager._signinCallback"); - return navigator.callback(url); + let useQuery = this._settings.response_mode === "query" || (!this._settings.response_mode && SigninRequest.isCode(this._settings.response_type)); + let delimiter = useQuery ? "?" : "#"; + return navigator.callback(url, undefined, delimiter); } signoutRedirect(args = {}) {