-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sebankid #2
Sebankid #2
Conversation
@sgryt hmm no netlify deploy preview yet, will investigate. |
✅ Deploy Preview for criipto-verify-react-storybook ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Not entirely sure what to expect - the login flow kind-a works in a laptop browser, but same-device on iOS does not switch back from the BankID app ? |
It should completely work on laptop and android, iOS still requires tweaking probably. |
The BankID app starts and lets me complete a login, and I do get switched back to the browser, but it ends up with a "Native-app driven authentication is not done" message (but quickly this time) |
Perhaps this comment from the SE BankID controller impl contains a clue ?
? |
can confirm that Chrome on Windows 10 ends up showing me a JSON structure with an id_token |
Switching back to the tab after about 30 mind shows me
So, the polling seems to be running |
Polling should only run in desktop case |
We set |
refresh(); | ||
}, [refresh]); | ||
|
||
// Continously fetch new autostart token if UI is open for a long time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this potentially trigger while the BankID app is in foreground on iOS?
Would explain the error message seen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgryt Hmm maybe if the onclick handler doesnt fire on iOS actually, could be it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgryt Latest commit disables the refetch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not change the observed behavior, I’m afraid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But could it be the other way around - in the sense that the displayed response is from before the flow is completed in the BankID app ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, the reason we had to not poll in the HTML UI was because iOS lets JS continue to run when Safari is backgrounded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When does setInterval
run the first invocation of the specified function ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgryt We don't poll per say in the device flows, the intent is simply to refresh links if you're idle on the page so that the order doesn't expire.
We also automatically stop the refreshing as soon as the user lcicks on the button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setInterval
runs on the tail-end, so doesn't execute untill the first interval has passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgryt Lets debug live with ngrok and slack-huddle tomorrow, will be easier.
@mickhansen Works on iOS now. If it also works on Android and Desktop, I vote to merge. |
No description provided.