I am facing issues while implementing Apple Sign-In in Appwrite. I followed the instructions outlined in this article https://dev.to/appwrite/apple-sign-in-with-appwrite-2576 and I have also configured web to capture the OAuth2 callback URL according to the documentation https://appwrite.io/docs/getting-started-for-flutter#web.
Expected Behavior: After successful login, I should be redirected back to the application without any issues, and the web view should close automatically.
Actual Behavior: After logging in, I am redirected to the HTML page that I initially set up for web configuration. The web view doesn't close, and the login process is not completed. If I click "cancel" an error appears - "PlatformException(CANCELED, User canceled login, null, null)".
Steps to Reproduce:
- Set up Apple Sign-In in Appwrite according to the article.
- Try to login via Apple.
- Redirected to the HTML page that I configured for web.
I've resolved the issue. The success parameter should be passed only when calling createOAuth2Session() in a web environment.
Recommended threads
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...
- CORS error only on tables db api After u...
I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g...
- [SOLVED] Access ExecutionStatus of a fun...
I am calling a cloud function from the newest Flutter SDK 20.2.1with the `xasync: false` flag and get the result, but the `execution.status` is not a String and...