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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...