Sign in with Apple on Expo React Native

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 19. 06. 2024
  • Sign in with Apple[0] makes it easy for users in native iOS apps to sign in using their Apple ID, and it is an requirement[1] for apps that use a third-party or social login service (such as Facebook Login, Google Sign-In, Sign in with Twitter, Sign In with LinkedIn, Login with Amazon, or WeChat Login).
    Expo's AppleAuthentication library[2] provides Apple authentication for iOS 13+ and allows you to conveniently test it in Expo Go without needing an Apple Developer account. We're excited to see what you'll be building! 💚
    Read the docs: supabase.com/docs/guides/auth...
    React Native Authentication blog post: supabase.com/blog/react-nativ...
    đŸŽ™ïž Presented by Thor Schaeff (@thorwebdev go.thor.bio/x)
    Chapters
    00:00 Intro
    00:25 Apple App Store requirements
    02:26 Create a new Expo TypeScript Project
    03:55 Install and configure Expo AppleAuthentication
    04:55 Create a native auth button component
    09:05 Inspect the Apple identity token
    10:20 Configure Sign in with Apple for local development
    11:55 Install and configure supabase-js in React Native
    14:16 Sign in with ID token in Supabase Auth
    15:05 Inspect user in the Supabase Dashboard
    15:30 Configure your hosted Supabase project
    [0] developer.apple.com/sign-in-w...
    [1] developer.apple.com/app-store...
    [2] docs.expo.dev/versions/latest...
  • Věda a technologie

Komentáƙe • 17

  • @Rems766
    @Rems766 Pƙed 8 měsĂ­ci +5

    what i love is that the hard part is getting information from apple developpers account to put in supabase but no video show how and where to get it

    • @ReadWriteExercise
      @ReadWriteExercise Pƙed 2 měsĂ­ci

      I was actually wondering about that 😂 Have you found a good guide for that by now?

  • @ShadowsPowerFy
    @ShadowsPowerFy Pƙed 6 měsĂ­ci

    Alot has already changed but this guide truely is still very much appriciated! Thanks. Love the videos bro.

  • @eren1514
    @eren1514 Pƙed 8 měsĂ­ci +1

    It would be great to have a web version of this tutorial, as it's difficult to find any articles or videos about it.

  • @JohnDoeOnly
    @JohnDoeOnly Pƙed 7 měsĂ­ci +1

    Awesome ! Is there any easy way / tutorial, to have 3 types of sign in available at the same time ?
    I mean by that having Google / Apple / Email sign in working together ?

  • @dev.caixeiroviajante
    @dev.caixeiroviajante Pƙed 7 měsĂ­ci

    There is a way to use a webhook to listen user.cretate event to sync with my database ?

  • @ryonwhyte
    @ryonwhyte Pƙed 6 měsĂ­ci +2

    This has one issue. For some reason, Sup abase is only adding the email to the database. It does not add the full name. This forces developers to build a workaround to insert user data. In cases where onAuthStateChanges is listening for login, it could cause for some unnecessary coding

  • @cordial
    @cordial Pƙed 5 měsĂ­ci

    What about using react-native-apple-authentication if you're not using Expo? Does that work? I'm getting "Passed nonce and nonce in id_token should either both exist or not.", which suggests it doesnt work, even though its stated as a vague solution on the signin with Apple page in the supabase documentation.

  • @shebinleo
    @shebinleo Pƙed měsĂ­cem

    That was super helpful.

  • @MrHaltSification
    @MrHaltSification Pƙed 5 měsĂ­ci

    Can explain How can do this in IOS environment ?

  • @Batman12thy
    @Batman12thy Pƙed 8 měsĂ­ci

    so if we want to use the sign im with apple we need imperativly an mac or an iphone . i ask you that cuz i'm building my reactbapp on a windows laptop

    • @Supabase
      @Supabase  Pƙed 7 měsĂ­ci

      Yes, you will either need a Mac with iOS Simulator or a physical iOS device.

  • @clint87ua
    @clint87ua Pƙed 7 měsĂ­ci

    How to delete user from Authentication? I mean delete user totally!

    • @Supabase
      @Supabase  Pƙed 7 měsĂ­ci

      See here: supabase.com/docs/reference/javascript/auth-admin-deleteuser . Note that this needs to be done with your service_role (secret) key in a secure server-side enviroment!

    • @Supabase
      @Supabase  Pƙed 7 měsĂ­ci

      This action can also be performed in the Supabase Dashboard manually when you're logged in as an admin!

  • @cordial
    @cordial Pƙed 5 měsĂ­ci

    How on earth Apple get away with forcing people to use apple signin if you're using 3rd party auth is beyond me. Imagine if MSFT had tried to do that in the 1990s.

    • @thegadgetzone
      @thegadgetzone Pƙed 2 měsĂ­ci

      Microsoft do that now in 2024 lol