Skip to content

Commit 86e679a

Browse files
elinohlssonElin Fokine
andauthored
Feature/508 collect triggered after complete (#511)
This PR fixes an issue where the client could continue polling BankID for status even after a transaction had already completed. In the original bug, this caused a pattern where a collect call would complete, but subsequent scheduled status checks would still run and fail multiple times, resulting in the user seeing the generic error message “Okänt fel. Försök igen.” The fix adds a safeguard to prevent any further status checks once a transaction has been marked as completed. --------- Co-authored-by: Elin Fokine <ElinO@activesolution.se>
1 parent 500e521 commit 86e679a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.413",
3+
"version": "8.0.414",
44
"rollForward": "latestFeature"
55
}
66
}

src/ActiveLogin.Authentication.BankId.AspNetCore/Client/activelogin-main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function activeloginInit(configuration: IBankIdUiScriptConfiguration, initState:
173173
}
174174

175175
function checkStatus(requestVerificationToken: string, returnUrl: string, protectedUiOptions: string, orderRef: string) {
176-
if (flowIsCancelledByUser) {
176+
if (flowIsCancelledByUser || flowIsFinished) {
177177
return;
178178
}
179179

0 commit comments

Comments
 (0)