Sign in with Google on Expo React Native

Поделиться
HTML-код
  • Опубликовано: 24 авг 2024

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

  • @kehrin
    @kehrin 12 дней назад +2

    Had it running perfectly in the Emulator, however I had to make some further modifications to get it to work in a production build on an actual device:
    1. Upon sign-in I got a stacktrace with the error "DEVELOPER_ERROR:10". Turns out I had to use the SHA-1 from the "Setup > App signing > SHA-1" in the Google Play Console.
    2. In Supabase I had to put my Web Client Credentials (Client ID & Secret) into the Google Provider. I also added the same Web Client ID into the Authorized Client IDs field.
    Hope this helps.

  • @cristianmerli5050
    @cristianmerli5050 Месяц назад +8

    why did the google sign in process become so complex??

    • @LAinLA86
      @LAinLA86 7 дней назад

      Its shocking how awful Google is with creating and publishing apps. The difficulty level of doing the most basic things is incredible

  • @hastingskondwani1066
    @hastingskondwani1066 10 месяцев назад +9

    Please make a continuation video where the authenticated user is interacting with the supabase database ie creating something like posts

    • @Supabase
      @Supabase  9 месяцев назад +5

      Here it is :) ruclips.net/video/AE7dKIKMJy4/видео.html

  • @oracleofwater
    @oracleofwater Месяц назад

    This is the only tutorial I've found that is clear and actually works. Thank you so much!

  • @AgritTiwari
    @AgritTiwari 4 месяца назад +2

    hey, how about native google sign in on Apple applications, it returns mismatch as it seems there is no place to add iOS client ID under google provider

  • @mr.robot.159
    @mr.robot.159 9 дней назад +1

    Documentation on Sign in with google page says that sign in with google is outdated and no longer supported, how can we use the android credential manager to login in instead?

  • @user-uw5bi9lj9d
    @user-uw5bi9lj9d 5 месяцев назад

    Great video, met supabase for this video and really love supabase now!

  • @benherbst3620
    @benherbst3620 10 месяцев назад +2

    Great you sponsor it ❤

  • @bakkg8573
    @bakkg8573 4 месяца назад +6

    Warning: Google Sign-In for Android is outdated and no longer supported. google now forcing to use credential manager

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

      Yes RNGooglesign is not working with expo

    • @MrMatDoe
      @MrMatDoe 2 месяца назад +4

      Is there a tutorial or guide on how to implement it using credential manager? if there is then can you provide a link to the guide?

    • @huangded
      @huangded 2 месяца назад +1

      @@sutharjay1 so how to do that

  • @justrensk
    @justrensk 8 месяцев назад +1

    am I the only one stucket with an error 400 from google? "this app doesn't comply with google's Oauth2"

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

    Hola, todos los que hablan españo, tuve un pequeño impedimento, en el cual salia el error de ERROR_DEVELOPMEN, en lo cual se soluciono creando otra api key y generando nuevamente el hash key y funcionó

  • @alaa_abuiteiwi
    @alaa_abuiteiwi 17 дней назад

    Public Version:
    Available on the public npm registry, this version does not include One-tap sign-in (it uses the deprecated Google Sign-In for Android), Web and macOS support found in the sponsor-only version.
    ------
    Why would I use it then?

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

    Hello, does this work with Expo managed apps? Or only with bare ones ?

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

    Thanks your video is so helpful

  • @armyofda12monkeys
    @armyofda12monkeys 8 месяцев назад +2

    I got this error towards the end of the video when i added utils/supabase. The app worked fine be4 trying to load supabase.
    Note: don't think it was in the video but I installed react-native-url-polyfill with "npx expo install react-native-url-polyfill;"
    Any idea?
    ERROR Error: URL.hostname is not implemented, js engine: hermes
    ERROR Invariant Violation: "main" has not been registered.

    • @armyofda12monkeys
      @armyofda12monkeys 8 месяцев назад

      nvm, i manually uninstalled the app from the emulator. and re-ran the 'npx expo run:android'. I think it worked after that.

  • @PrinzEugen39
    @PrinzEugen39 9 месяцев назад +2

    error in the chapter implement sign in button ERROR RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully or try manual linking.
    ERROR TypeError: Cannot read property 'SIGN_IN_CANCELLED' of null, js engine: hermes

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

      for these kind of sht I stopped using react native. Everything involves a cascade of "before doing this..."

  • @priyanshuone6
    @priyanshuone6 7 месяцев назад

    Thank you so much, this tutorial was very helpful!

  • @humblewinner
    @humblewinner 10 месяцев назад +4

    Finally, you guys have been so focused on flutter that you've missed the more popular alternative.

  • @tatsumii1420
    @tatsumii1420 10 месяцев назад

    thank you for the amzing tutorial

  • @FichTV
    @FichTV 4 месяца назад +1

    I followed every step until 16:40, the Google pop-up shows and when I connect with google I have a [Error: DEVELOPER_ERROR].
    I checked my SHA 1, my package name, ma AndroidManifest, my string.xml, the set up un my Google Console...
    Can someone give me some advice to debug that ? :)
    thanks !

    • @shadow-hr3vo
      @shadow-hr3vo 3 месяца назад

      i also get error like you, then i can't slove it. Is anyone can help me ? :)

  • @facundotorres7690
    @facundotorres7690 9 месяцев назад +2

    Hello great video, but im having this problem: RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully or try manual linking. Do you have any advice?

    • @rubenandiapimentel
      @rubenandiapimentel 9 месяцев назад +1

      hi, the problem you have is a bout you cant run google-sign-in library on expo go, if you see the app.json you find the path "googleServicesFile": "./android/app/google-services.json", you will never be able to connect that in expo go, the explanation is long ,instead of that run npx expo run:android.

  • @bartoindahouse
    @bartoindahouse 10 месяцев назад +2

    question. You are setting the expo config plugin. There is no need to touch the native code when building with expo eas

    • @vonovak
      @vonovak 10 месяцев назад

      this is correct, you actually don't need to touch any native code when using the expo config plugin, so you can ignore the part here ruclips.net/video/vojHmGUGUGc/видео.htmlsi=C3h9whxrB21Vxo-s&t=368
      This is because RNGS already adds that dependency, so no need to do it again.
      (I'm the maintainer of RN google sign in)

    • @Supabase
      @Supabase  10 месяцев назад

      You are correct, thanks for pointing that out! Will see to update the README and the video.

    • @armyofda12monkeys
      @armyofda12monkeys 8 месяцев назад

      I was about to ask if instead of touching the native code, if this tutorial can be done completely in Expo (fully managed workflow) pretend using a 'Development Build' instead of prebuilding and touching the generated android code. I saw your comment and was wondering if you got this working purely with JS/TypeScript expo code? If so, how would the steps in this tutorial change?

    • @vonovak
      @vonovak 8 месяцев назад

      @@armyofda12monkeys you do need to prebuild. But after that, there's no touching of the native code. It cannot be done purely with JS code, so google sign in won't work in Expo Go

  • @kpopcat_official
    @kpopcat_official 8 месяцев назад +4

    what is the problem with IOS? Could you explain how to work with IOS?

    • @tmc1049
      @tmc1049 7 месяцев назад

      i recommend read the docs

  • @Alphfirm
    @Alphfirm 7 месяцев назад +1

    If I follow these steps, will it work on my iOS app as well?

    • @tmc1049
      @tmc1049 7 месяцев назад

      probably not

  • @nyogrson1
    @nyogrson1 4 месяца назад

    Why are there so many different processes for this? just need a working solution that hasn't been deprecated yet

  • @ashminjayson3978
    @ashminjayson3978 8 месяцев назад +1

    Isn't the library using the legacy auth method for this flow though?

    • @999waylon
      @999waylon 7 месяцев назад +1

      The legacy auth method is also unsupported now, so I'm not sure how to get this working without paying the maintainer of the library they use for the updated version. Did you find a different way to implement this?

  • @MahatmaAcademy
    @MahatmaAcademy 10 месяцев назад

    why the self hosted version different from platform version and also make the same as platform for self hosted

  • @harunsimsek724
    @harunsimsek724 10 месяцев назад +1

    I urgently need the Flutter version :)

    • @Supabase
      @Supabase  10 месяцев назад +1

      Coming right up!

    • @J3R3MI6
      @J3R3MI6 10 месяцев назад +1

      Same lol

    • @harunsimsek724
      @harunsimsek724 10 месяцев назад

      @@J3R3MI6 I found the solution but it would still be good for other friends to have a video

  • @developerpaul46
    @developerpaul46 10 месяцев назад +2

    Hi supabase, do you have tutorial on how to combine supabase and react query?

    • @Supabase
      @Supabase  9 месяцев назад

      This is a good one by a community member: makerkit.dev/blog/saas/supabase-react-query

  • @ReadWriteExercise
    @ReadWriteExercise 4 месяца назад

    This is for the "Original Google sign in" right? Seems the maintainer has now split it so there's a "One-tap Google sign in" version for sponsors only. Just want to see which version this is for

    • @BradyDowling
      @BradyDowling Месяц назад

      Just ignore the One-tap Google sign in and do the original way. That way will work just fine, no need to pay for the premium version of the Google sign in for react library

  • @korveld
    @korveld 6 месяцев назад

    Thanks! Works perfectly localy, but after i build an apk file and install it on real device. "Sign in" button stops working with no errors. Just nothing happens when i try to tap it

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

      Hi! may I ask how you ultimately completed this task? I have been working on it recently,I'd appreciate some help

  • @IgnacioBarraZagal0
    @IgnacioBarraZagal0 4 месяца назад

    Super useful video!😀

  • @harshupgrader1380
    @harshupgrader1380 9 месяцев назад +1

    Error: DEVELOPER_ERROR i dont know wt to do now

  • @asaphhere
    @asaphhere 8 месяцев назад +7

    this is now outdated :( please can you upload a new video

    • @ibrahimkouma6751
      @ibrahimkouma6751 4 месяца назад

      You can integrate with web based auth without relying on react native google sign in. that's the way we are doing it in production

    • @ibrahimkouma6751
      @ibrahimkouma6751 4 месяца назад

      You can integrate with web based auth without relying on react native google sign in. that's the way we are doing it in production.

    • @user-jm2rq7ro7v
      @user-jm2rq7ro7v 4 месяца назад +1

      Qual a opção mais atualizada para isso? Você tem alguma alternativa?

  • @faisalaqdas4953
    @faisalaqdas4953 10 месяцев назад

    can we do google passkey authentication with expo?

  • @mihaipaval6970
    @mihaipaval6970 10 месяцев назад

    Hello. I am at 16:17 and the google popup opens, I am able to select a google account but when I press "next" it says "Something went wrong" and if I press the "next" button again I get redirect to a browser with 400 error saying "The server cannot process the request because it is malformed. It should not be retried" did you encounter this error? or what could be the isse? thank you!

    • @mihaipaval6970
      @mihaipaval6970 10 месяцев назад +1

      I was using my mobile device connected via USB Debugging. this was the issue!

  • @arory2622
    @arory2622 4 месяца назад

    and in js?

  • @user-ig2er6pd6v
    @user-ig2er6pd6v 3 месяца назад

    Bro, i have this problem, any idea??
    ERROR Invariant Violation: "main" has not been registered. This can happen if:
    * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
    * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

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

      Had same issue yesterday. What did it for me is delete .expo, node-modules, android, ios folders from root of project. Then do npx expo prebuild --clean and npx react-native start --reset-cache
      Also I had an issue with upgrading to expo SDK 51 from 49: in the package.json your "main" should actually point to your entry point, can't use the expo-router/entry as before. Next thing is that at the end of your entry point file you should always have the registerRootComponent(App); where App is your entry point component name. Hope this helps!

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

      How did you fixed this issue?

    • @TalhaGhouri-w9b
      @TalhaGhouri-w9b 15 дней назад

      ​@@emanuilnikolov8662 can you please share the code if you Have implemented this functionality please

  • @sgnlx_ai
    @sgnlx_ai 9 месяцев назад

    "supabase start" never worked on any machine for me.

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

      you need the supabase cli for selfhost, but you propably go with cloud, so its not for you

  • @dimenuendo
    @dimenuendo 24 дня назад

    seems like it not compatible with expo 51

    • @alberttarkaa6589
      @alberttarkaa6589 4 дня назад

      Hey, have you found something that works?
      I am stuck here too

    • @dimenuendo
      @dimenuendo 3 дня назад

      @@alberttarkaa6589 yes, i've did it. Later I can link my code that works (if not forget)

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

    google sign in authentication not working on realease apk

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

      Have you registered the Client ID with the release SHA-1 certificate fingerprint?

  • @qutesoft
    @qutesoft 10 месяцев назад +2

    Seems in iOS is not woking, it reports [AuthApiError: Passed nonce and nonce in id_token should either both exist or not.]

    • @williamliu796
      @williamliu796 10 месяцев назад

      im having this same problem

    • @qutesoft
      @qutesoft 10 месяцев назад

      @@williamliu796 Have you solved it? I'm looking to firebase now

    • @Supabase
      @Supabase  10 месяцев назад +2

      Yes, there is currently an issue with iOS that's being worked on. Please follow along here: github.com/openid/AppAuth-iOS/pull/788

    • @audunhilden
      @audunhilden 10 месяцев назад

      hi@@Supabase , the issue you linked to seem to be fixed, when can we expect it to work?

    • @McQuinTrix
      @McQuinTrix 9 месяцев назад

      @@Supabase Does it work now ?