Skip to content

Commit

Permalink
Merge pull request #283 from torusresearch/fix-popup-block
Browse files Browse the repository at this point in the history
Fixes popup blocked in safari
  • Loading branch information
chaitanyapotti authored Jan 18, 2024
2 parents 24be8e4 + cf731fa commit a1cbcb8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
24 changes: 12 additions & 12 deletions examples/vue-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packages/openlogin/src/OpenLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ class OpenLogin {
sessionId: loginId,
});

await loginSessionMgr.createSession(JSON.parse(JSON.stringify(data)));
const promise = loginSessionMgr.createSession(JSON.parse(JSON.stringify(data)));

if (data.options.uxMode === UX_MODE.REDIRECT) {
await promise;
}

return loginId;
}
Expand Down

0 comments on commit a1cbcb8

Please sign in to comment.