Skip to content

Commit 6660c58

Browse files
authored
Merge pull request #6 from bcgov/fix/callback-redirect-loop
fix callback redirect loop
2 parents efa450b + 8e6e902 commit 6660c58

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)