Closed
Description
👟 Reproduction steps
There's a use of DispatchGroup
in Account.swift
which most of the time causes the app to freeze when the app opens the Safari App for OAuth
.
Flow:
- I used this:
let status = try account.createOAuth2Session(provider: "google")
- App opens
Safari
browser & goes into background - Sign In with your Account, the generic
Missing Redirect
page shows up which triggers app open via deep-link - App freezes with above error after deep link open.
I manually commented out the DispatchGroup
implementation in the Account.swift
and it seems to work smooth!
Note:
As I have multiple deep-links I cannot directly use registerOAuthHandler()
on a View
.
So, I manually check the URLComponents
received if valid, I use WebAuthComponent.handleIncomingCookie(from: url)
👍 Expected behavior
App should not freeze.
👎 Actual Behavior
App freezes, sometimes even before opening.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct