![](https://cdn.discordapp.com/avatars/295596133198331905/474a7c095432fc1ffd9b3477f0d224c5.webp)
Hi everyone,
I'm trying to integrate OAuth2 with the SDK for Apple. Everything works as expected, but somehow the session is not passed on to the app.
When executing the function, Safari opens as expected and displays the provider's login page. Upon successful authentication, it redirects to the Appwrite installation and asks to open the app. But here lies the problem: The app opens, and nothing happens. As far as I understand this issue, it does not execute the 'handleIncomingCookie' function, thus it is unable to log the user in.
I'm using SwiftUI.
Is there anything else that needs to be enabled or configured for this to work?
Recommended threads
- Anonymous Users Expiration Date
Do Anonymous Users have an expiration date (on mobile platforms using flutter)? And If so is there a way to have a control over that period? Basically what I'm ...
- Not Getting the SMS on Phone Number
Hi, after the previous downtime of Appwrite, when I try to login with Phone number, I am not able to recieve any sms This is the Problem from server side
- User (role: guests) missing scope (accou...
```dart Future<void> loginWithGoogle() async { try { await account.createOAuth2Session(provider: OAuthProvider.google); await isUserLoggedIn(); ...
![](/images/bgs/pre-footer.png)