mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-26 22:11:03 +02:00
196fd0f651
The captcha/OAuth flow relied on the OS routing the spotiflac:// callback back into the app. In sideload containers (LiveContainer) the guest app's URL scheme is never registered with iOS, so after solving the challenge the redirect went nowhere and the user could not return to the app (LiveContainer#242/#162 — unresolved upstream). ASWebAuthenticationSession intercepts the callback scheme in-process, so no OS-level scheme registration is involved: the session sheet closes itself on completion and the callback URL is fed into the same deep-link handler the OS path uses. Verification challenges, the help dialog's open-browser action, and extension OAuth logins all prefer the session on iOS, falling back to url_launcher if it fails to start. Safari's cookie store is shared so captcha providers see an established browsing context.