When i call the account.createOAuth2Session function, it does not throw any error in the process. but when I try to get the currently logged-in user afterward with account.get, it doesn't show me the current user.
Below are the devices and browsers where I've tested it
- Not working
- Safari (iPhone, iPad, Mac)
- Chrome (iPhone, iPad)
- Firefox (Linux, Windows, Android, Mac)
- Working
- Chrome (Linux, Windows, Android, Mac)
Stack:
NextJS
Appwrite Cloud
I do have a demo app deployed for this. If u wanna test it live, dm me ur gmail and I'll add u to the test users list in my Google Cloud console, also provide u the app link
lmk if u need any more info to debug this
TL;DR
Google OAuth login is failing on Safari, Chrome for iOS, and Firefox. It works on Chrome for most other platforms. The developer is using NextJS and Appwrite Cloud. To debug, the developer offers access to a demo app through Google Cloud Console.