From 14189f04610b08c0e512413c46ba30177227faa5 Mon Sep 17 00:00:00 2001 From: delthas Date: Sat, 20 Jul 2024 13:55:27 +0200 Subject: [PATCH] Prevent showing empty page on browser back button --- lib/oauth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth2.js b/lib/oauth2.js index 02abdbc..119af25 100644 --- a/lib/oauth2.js +++ b/lib/oauth2.js @@ -50,7 +50,7 @@ export function redirectAuthorize({ serverMetadata, clientId, redirectUri, scope if (scope) { params.scope = scope; } - window.location.assign(serverMetadata.authorization_endpoint + "?" + formatQueryString(params)); + window.location.replace(serverMetadata.authorization_endpoint + "?" + formatQueryString(params)); } function buildPostHeaders(clientId, clientSecret) {