-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2.0 Google not working #1790
Labels
Comments
➤ PM Bot commented: Jira ticket: RDART-1096 |
As of now, the device sync is deprecated, its better to look into other options. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Hi all,
I am working on a flutter app and I am trying to get the sign in with google functionality working, but It doesn't seem to work and I believe there might be a bug.
I have followed the instructions from the following pages:
This is the code I am using to attempt to sign in with google:
The line containing
final googleAuthCodeCredentials = Credentials.googleAuthCode(googleUser.serverAuthCode!);
executes successfully and I can see the object being created, however when the realmApp attempts to logIn with those credentials a 401 is thrown and I can see the following in MongoDB consoleI have attempted the following
http://localhost:8081
or something likehttps://<appname>.realm.mongodb.com/api/client/v2.0/auth/callback
-> the latter one was suggested by cursorAI, was not able to find any other references in the documentation.My MongoDB Atlas setup:
The Client ID I set up in Google Console:
Repro steps
Version
Flutter 3.24.1, Dart 3.5.1
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
macOS 14.6.1
Code snippets
No response
Stacktrace of the exception/crash you're getting
Relevant log output
No response
The text was updated successfully, but these errors were encountered: