Getting started with account linking and anonymous authentication

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • A lot of apps throw their potential users off at the most critical part of the user journey: the onboarding process.
    In this video, Firebase Developer Advocate ‪@PeterFriese‬ will show you how to implement a smooth onboarding process for your app using Anonymous Authentication and Account Linking.
    What's so cool about this? Users can try out your app without having to sign in, but they still have a unique ID that you can use to store their data. Once they are sure they like your app, you can ask them to sign in, and upgrade their guest account to a full account.
    Chapters:
    0:00 Asking users to sign in first 😱
    0:44 How to build a streamlined onboarding process
    0:59 Reasons for signing in
    2:17 The sample app
    2:47 DEMO: No need to sign in!
    3:30 How does this work?
    5:51 Implementing Anonymous Authentication
    7:56 Upgrading accounts using Account Linking
    9:59 DEMO: Anonymous Auth & Account Linking in action
    12:31 Other scenarios
    Resources:
    Getting started with Firebase Auth for Apple platforms → goo.gle/3DDIlbk
    Anonymous Authentication for Apple documentation → goo.gle/2wLa36H
    Firebase Console → goo.gle/3vPYq9K
    Getting started with Firebase on Apple platforms → goo.gle/3szkx2j
    App Store Review Guidelines → goo.gle/3SLjxmm
    Source code → goo.gle/3Gnabtn
    Catch more Firebase Fundamentals → goo.gle/Firebase-Fundamentals
    Subscribe to Firebase → goo.gle/Firebase
    #FirebaseFundamentals
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 19

  • @Firebase
    @Firebase  ปีที่แล้ว +5

    Subscribe for the latest → goo.gle/Firebase

  •  ปีที่แล้ว +3

    Great video! I wonder what happens to the anonymous account on the second device (and its data, if it would be created). Is that account also linked to the email? Is the data lost - as there is no merge action?

  • @user-yy4ly1fn6h
    @user-yy4ly1fn6h ปีที่แล้ว +1

    Hey, thanks for this, great video! One question about a specific user journey, can a user be sent a deeplink via email containing reference to the user ID so when they follow the deeplink and sign up they will have prep populated information?

  • @tony_testarossa
    @tony_testarossa 10 หลายเดือนก่อน +1

    Great video thanks!
    Our use-case is a little different - what is the flow if we don't want to use anonymous sign in?
    How can we have a user sign in with one strategy, sign out, then sign in with another strategy and link those two accounts? At the time of the 2nd sign-in there's no "user" reference to use user.linkWithCredential(credential)

  • @K9MobilityHeroes
    @K9MobilityHeroes ปีที่แล้ว +1

    Thank you

  • @fahrymohammed8863
    @fahrymohammed8863 ปีที่แล้ว +1

    But Firebase authentication does not support EU location and only stores and processes the data in the US that clear violation of GDPR.

  • @IsUserADuck
    @IsUserADuck ปีที่แล้ว +1

    Hello. I have tried using signInAnonymously in a simple Kotlin app that does just that, and it takes an incredibly long time to complete - around 20 seconds. Everything else after that works just fine and my interned is very fast. Is this normal?

    • @PeterFriese
      @PeterFriese ปีที่แล้ว

      Sign in anonymously should return almost instantly. If you can reliably reproduce this, please feel free to open an issue on the Android SDK repo.

    • @IsUserADuck
      @IsUserADuck ปีที่แล้ว

      @@PeterFriese thank you for your reply. Yes, I can reproduce it reliably, it happens all the time. I will package my sample code and open an issue. To clarify, function itself returns instantly, but the callback is called after 20-30 seconds, so it's taking a very long time to create an account.

    • @rusty-coder
      @rusty-coder 11 หลายเดือนก่อน

      Mine is showing error: Firebase: This operation is restricted to administrators only. (auth/admin-restricted-operation)

  • @greykrav1869
    @greykrav1869 ปีที่แล้ว

    So basically if i want to follow along with this video or utilize the repository i need a macOS/iphone? I want to implement this in react native for web/android. I don't have a Mac or an iphone

    • @PeterFriese
      @PeterFriese ปีที่แล้ว

      We'll post a video for Android / web soon.

    • @xBugzilla
      @xBugzilla ปีที่แล้ว

      @@PeterFriese will Flutter get some love too? I get it's redundant but it would be nice!

  • @elijahloola3505
    @elijahloola3505 ปีที่แล้ว +1

    Thanks for the session. If possible make us a similar video but with Flutter. Thanks

  • @user-ws4xy5gr5v
    @user-ws4xy5gr5v ปีที่แล้ว +1

    Hello, dear Peter! Can i receive a short userID(5-6 symbols) to Firebase users collection? Many thanks 4 your answer. Boris 😊

    • @PeterFriese
      @PeterFriese ปีที่แล้ว

      Hi Boris, can you describe what you’re trying to achieve? How you manage additional user data (e.g. any preferences, high score in a game, etc.) is up to your app / use case.

  • @elssiany_
    @elssiany_ ปีที่แล้ว +2

    🤩🤩🥳

  • @user-li4px4si6o
    @user-li4px4si6o ปีที่แล้ว +1

    저는기회가없습니까