Google Signin in React Native Cli without expo framework and without firebase from scratch. OAuth2.0
HTML-код
- Опубликовано: 6 окт 2024
- In this video you will learn how to signin with google in your react native cli project creating from scratch.
We will not use expo framework or firebase login.
Here is the code to get SHA-1 key:
keytool -keystore app/debug.keystore -list -v
password=android
The code to include in you info.plist inside your ios/projectname/ folder will be in the first comment
Code for Info.plist in ios folder:
CFBundleURLTypes
CFBundleTypeRole
Editor
CFBundleURLSchemes
com.googleusercontent.apps.YOUR_WEB_CLIENT_ID
com.googleusercontent.apps.your_ios_clientid
GIDClientID
your_ios_clientid.apps.googleusercontent.com
GIDRedirectURI
com.googleusercontent.your_ios_clientid:/oauth2redirect/google
Thank you for this video
i dont have androidClientId attribute under GoogleSignin.Configure({}). ?
GoogleSignin.configure({
webClientId: "",
androidClientId: "",
iosClientId: "",
scopes: ['profile', 'email'],
});
place like this
its saying"The request failed because the Android package name and fingerprint are already in use" even tho its my first tym creating this
@@tharunlegancy3076 create the project with different name and than use that project bundle id
Make one video with expo also.
make same video for android
why have you used android bundle id in ios while creating oauth client id?
@@abc-yd3xfmy bundle id is same for both android and ios.
@@MarhabaCodes where can i find bundle id in ios??
@@abc-yd3xf it is same as andriod, if you have not changed it yourself.
@@MarhabaCodes ok ... Getting error androidClientId is not a vaild configuration parameter, please remove it , do you have any idea about it?
@@abc-yd3xf create a new project with different name and shift current project to new project and than try to use nee project bundle id
bro make more videos on facebook login etc
[Error: DEVELOPER_ERROR] new error
ERROR Sign in error: [Error: DEVELOPER_ERROR]
in android i am getting this error
@@kiranoffice4445 this is because of wrong package name or sha-1 key at google console platform.
Android error
@@eavoutdom190 what does it say
@@MarhabaCodes "Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGoogleSignin' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes".
@@MarhabaCodes google removed my reply comment, Can u push your setup code on github or making another video on android?
Your voice is not reachable
@@p_003hiralbhavsar6 yes, there was some issue with the mic