Prevent showing empty page on browser back button

This commit is contained in:
delthas 2024-07-20 13:55:27 +02:00 committed by delthas
parent 9922d11654
commit 14189f0461

View file

@ -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) {