Comments (1)
Hello and thanks for asking,
We set it up, by adding the 'google-services.json' and 'GoogleService-Info.plist' files.
From my understanding these files add the 'Native' Google Oauth Keys to the App, which this library uses.
they contain the client IDs (web, ios, android) and some more firebase-related stuff. Using these files is not mandatory, because you can provide the IDs as parameters to the module, for example:
const userInfo = await GoogleOneTapSignIn.signIn({
webClientId: config.webClientId,
iosClientId: config.iosClientId,
});
On Apple it works fine, but for some reason, we need to add the 'webClientId' to the configure call, for it to work on Android.
it'd help to know what exactly the problem is :).
My question is what the 'webClientId' does exactly? Does it only work on Android or also on iOS? If it works on both, what is the purpose of the 'iosClientId'?
The web client ID is usually needed for the ID token, if you want to send it over to your server, for example to create a user account. You will find the web client ID in the "aud" (audience field - identifies the recipients that the JWT is intended for) in the decoded ID token.
It works both on Android and on iOS.
The purpose of iosClientId is to identify your app with Google (in conjunction with bundle identifier). On Android, this is done differently - using the SHA-1 hash of app's signing certificate in conjunction with the package name.
Can we use the 'webClientId' instead of the 'google-services.json'?
google-services.json
file is optional so in the scope of google sign in, yes. But you'll have to provide iOS client ID and maybe some other config options too.
Hope this answers the questions, feel free to ask more :)
Thank you 🙂
from google-signin.
Related Issues (20)
- Incorrect version number in docs? HOT 1
- iOS Error when running pod install: CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn" HOT 3
- Developer Error For Internal Testing HOT 2
- Additional SignIn Parameters
- missing dependencies HOT 2
- OneTap fails on web when 'sign-in prompts' are disabled HOT 4
- App crashing on iOS while tapping on Sign in with Google! HOT 4
- signInSilently gives error [Error: SIGN_IN_REQUIRED] HOT 8
- Unable to install sponsored version HOT 3
- Solution to issue #1176 (Supabase on iOS with Expo) HOT 2
- How to import isErrorWithCode HOT 2
- 11.0.0: CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn": HOT 1
- [Website] Example links don't work HOT 2
- Include of non-modular header inside framework module 'GTMAppAuth.GTMAppAuthFetcherAuthorization': HOT 1
- (DEVELOPER_ERROR) Only in production Android HOT 1
- Tried to register two views with the same name RNGoogleSigninButton error
- I am not getting user's Birthday HOT 2
- AppAuth 1.7.0 will give 'No visible @interface for 'OIDAuthorizationResponse' declares the selector 'tokenExchangeRequestWithAdditionalParameters:' HOT 8
- no visible @interface for 'OIDAuthorizationResponse' declares the selector 'tokenExchangeRequestWithAdditionalParameters:' HOT 3
- Error: RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-signin.