Skip to content

Commit 59c4cb9

Browse files
authored
Merge pull request #770 from bcgov/rsbc/7.0.0
Rsbc/7.0.0 fix callback redirect loop
2 parents f11c07e + 6660c58 commit 59c4cb9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

forms-flow-service/src/keycloak/KeycloakService.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,6 @@ class KeycloakService {
493493
callback(true);
494494
} else {
495495
console.warn("Not authenticated! Initiating login...");
496-
// Don't await the login as it will redirect the page
497-
// The callback should be called with false to indicate auth is needed
498-
callback(false);
499-
// Start the login process without waiting
500496
this.login().catch(error => {
501497
console.error("Login initiation failed:", error);
502498
});

0 commit comments

Comments
 (0)