Rank 1: Thread
I use the following code in flutter for the session creation for the login with apple:
try { final response = await account.createOAuth2Session( provider: 'apple', success: "https://XX.com/auth/oauth2/success", failure: "https://XX.com/auth/oauth2/failure", ); print(response); return response; } on AppwriteException { rethrow; } }````
To open the login page I use:```ElevatedButton( child: const Text('Login with Apple'), onPressed: () async { await AuthHelper().loginWithApple().then((value) { prefs.setSessionId(value.$id);
Navigator.of(context).pushReplacement( MaterialPageRoute( builder: (context) => const HomePage(), ), ); }).onError((error, stackTrace) { print(error); }); }, ),````
In the simulator I get the error seen in the screenshot. When I run the app on my iPhone with the cable connected the page opens fine, but when I click on login I get the error that the login is not possible ("registration not completed"). I host appwrite on digitalocean with a custom (sub-)domain.