redirect in every case

This commit is contained in:
Jacob Overgaard
2024-04-30 10:33:17 +02:00
parent 827e41c0aa
commit c5efe5b49e

View File

@@ -70,7 +70,7 @@ export class UmbAppElement extends UmbLitElement {
: 'Authorization failed. Please try again.';
// Complete the authorization request
this.#authContext?.completeAuthorizationRequest().then(() => {
this.#authContext?.completeAuthorizationRequest().finally(() => {
// If we don't have an opener, redirect to the root
if (!window.opener) {
history.replaceState(null, '', '/');