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

Комментарии • 24

  • @MarhabaCodes
    @MarhabaCodes  3 месяца назад +1

    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

  • @ranvijayyadav3508
    @ranvijayyadav3508 Месяц назад +1

    Thank you for this video

  • @karthikrajanatarajan-c9h
    @karthikrajanatarajan-c9h 6 дней назад +1

    i dont have androidClientId attribute under GoogleSignin.Configure({}). ?

    • @MarhabaCodes
      @MarhabaCodes  6 дней назад

      GoogleSignin.configure({
      webClientId: "",
      androidClientId: "",
      iosClientId: "",
      scopes: ['profile', 'email'],
      });
      place like this

  • @tharunlegancy3076
    @tharunlegancy3076 12 дней назад

    its saying"The request failed because the Android package name and fingerprint are already in use" even tho its my first tym creating this

    • @MarhabaCodes
      @MarhabaCodes  12 дней назад

      @@tharunlegancy3076 create the project with different name and than use that project bundle id

  • @nehat786
    @nehat786 3 месяца назад +1

    Make one video with expo also.

  • @hiitechz
    @hiitechz 3 месяца назад +2

    make same video for android

  • @abc-yd3xf
    @abc-yd3xf 21 день назад

    why have you used android bundle id in ios while creating oauth client id?

    • @MarhabaCodes
      @MarhabaCodes  21 день назад

      @@abc-yd3xfmy bundle id is same for both android and ios.

    • @abc-yd3xf
      @abc-yd3xf 21 день назад

      @@MarhabaCodes where can i find bundle id in ios??

    • @MarhabaCodes
      @MarhabaCodes  21 день назад

      @@abc-yd3xf it is same as andriod, if you have not changed it yourself.

    • @abc-yd3xf
      @abc-yd3xf 21 день назад

      @@MarhabaCodes ok ... Getting error androidClientId is not a vaild configuration parameter, please remove it , do you have any idea about it?

    • @MarhabaCodes
      @MarhabaCodes  21 день назад

      @@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

  • @FarazAhmed-rd3if
    @FarazAhmed-rd3if Месяц назад

    bro make more videos on facebook login etc

  • @kiranoffice4445
    @kiranoffice4445 2 месяца назад

    [Error: DEVELOPER_ERROR] new error
    ERROR Sign in error: [Error: DEVELOPER_ERROR]
    in android i am getting this error

    • @MarhabaCodes
      @MarhabaCodes  2 месяца назад

      @@kiranoffice4445 this is because of wrong package name or sha-1 key at google console platform.

  • @eavoutdom190
    @eavoutdom190 3 месяца назад

    Android error

    • @MarhabaCodes
      @MarhabaCodes  3 месяца назад

      @@eavoutdom190 what does it say

    • @eavoutdom190
      @eavoutdom190 3 месяца назад

      @@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".

    • @eavoutdom190
      @eavoutdom190 3 месяца назад

      @@MarhabaCodes google removed my reply comment, Can u push your setup code on github or making another video on android?

  • @p_003hiralbhavsar6
    @p_003hiralbhavsar6 2 месяца назад

    Your voice is not reachable

    • @MarhabaCodes
      @MarhabaCodes  2 месяца назад

      @@p_003hiralbhavsar6 yes, there was some issue with the mic