authgear / authgear-sdk-js

Authgear authentication SDK for Single Page Applications (SPA) and JavaScript websites
https://www.authgear.com/
Other
5 stars 18 forks source link

Window opened by container.open() when using refresh token for session type will get blocked by Safari #213

Open jasonkit opened 2 years ago

jasonkit commented 2 years ago

Safari will block window.open() after await even if it is triggered by user interaction.

One workaround is open the window (const windowProxy = window.open(undefined, "_blank");) before any await call and set windowProxy.location after the await call.

fungc-io commented 2 years ago

Oh right, when I was testing in iPad Chrome (also WebKit based) yesterday the settings page was blocked too! It is shown as blocked popup