Closed deepanshubalyan01 closed 1 year ago
Hi @deepanshubalyan01 This is noted in the docs: https://www.mongodb.com/docs/atlas/app-services/authentication/google/ could you follow the steps listed here and see if that helps?
the way it works is that I need to pass my ios ClientId and reversed client ID in the info.plist file only then the google auth opens else it crashes. But for android To work in the google auth setting(realm app) I have put Web client id and secret. and iOS just won't work with that client Id as it needs iosClient Id configured. so No. you have to come up with multiple client id or something.
@deepanshubalyan01 there is a similar issue where this was discussed https://github.com/realm/realm-swift/issues/7506 which could help to make this work on both Android and iOS.
Hi @deepanshubalyan01 did you try any of the mentioned workarounds?
Closing this as there is no response from the user
How frequently does the bug occur?
Description
So I am using google auth in my android and ios application. Now the application I created on atlas-app services allows only one client Id. But for android authentication to work, I need to add the web Client id in the google auth setting and for it to work on ios I need to add Ios client Id. otherwise one of them gives this aud error.
Stacktrace & log output
Can you reproduce the bug?
Reproduction Steps
here is the android code binding.googleSigninButton.setOnClickListener(view1 -> { Intent intent = gsc.getSignInIntent(); startActivityForResult(intent, GOOGLE_REQUEST_Code); binding.progressBar4.setVisibility(View.VISIBLE); });
and here is the ios code:
GIDSignIn.sharedInstance.signIn(withPresenting: self) { [self] signInResult, error in guard error == nil else { return }
Version
master
What Atlas Services are you using?
Atlas App Services: Functions or GraphQL or DataAPI etc
Are you using encryption?
No
Platform OS and version(s)
every
Build environment
Xcode version: ...14.2 (14C18) Dependency manager and version: ...