Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: iOS login blocked #1295

Merged
merged 4 commits into from
Aug 31, 2022
Merged

fix: iOS login blocked #1295

merged 4 commits into from
Aug 31, 2022

Conversation

peterpeterparker
Copy link
Member

Motivation

Long story short: on iOS, click on the "Login" have no effect 馃憠 user cannot sign-in on iOS with the current development version which uses agent-js v0.13.x (mainnet uses currently v0.12.x which is fine).

More details and context in related agent-js issue dfinity/agent-js#618

Changes

  • keep authClient object in memory to not call authClient.create before authClient.login - i.e. avoid any async callback within the same function that should ultimately call window.open

Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@mstrasinskis mstrasinskis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
@peterpeterparker peterpeterparker enabled auto-merge (squash) August 31, 2022 13:35
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
@peterpeterparker peterpeterparker merged commit b699fd5 into main Aug 31, 2022
@peterpeterparker peterpeterparker deleted the fix/ios-login-blocked branch August 31, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants