Flutter Database & User Authentication Quickstart

Поделиться
HTML-код
  • Опубликовано: 13 июн 2023
  • We are going to create a simple user management app using Flutter and Supabase, where the user can log in using a magic-link, and edit their profile information once they are signed in. This touches on the basics of app development that involves user generated content.
    📄 Flutter user management guide: supabase.com/docs/guides/gett...
    🧑‍💻 Full Flutter code of the app: github.com/supabase/supabase/...
    Join Tyler from Supabase as he shows you how to integrate a Supabase backend into your Flutter application in minutes.
    We're going to focus on user authentication and profile management here so you can make your apps safer.
    If you want to hook up a user management system in your Flutter app, start here.
    What you'll learn:
    ✅ Setting Up a Supabase Project: We'll show you how to set up a new project on Supabase, and set up your database ready for integration with your Flutter app.
    ✅ Flutter App Configuration: Use the Supabase Flutter library connector to configure deep link settings to handle authentication flows.
    ✅ Database Schema Setup: Learn to bypass the initial database setup, focusing instead on linking your Flutter app with Supabase for authentication and data handling.
    ✅ Implementing Authentication: Implement magic link authentication in Flutter, which allows users to log in via a link sent to their email.
    ✅ User Profile Management: `We'll show you how to let users update their profile information from within the app so updates are seamless and changes are reflected in real-time - instantly!
    This is your perfect quickstart guide for developers who want to create an app where users can log in and store some data on your database.
    Need more Flutter + Supabase videos?
    Check the links below!
    💻 Videos to watch next:
    ▶Watch all Supabase Flutter tutorials: • Getting Started with F...
    ▶ Build a SaaS with Supabase in minutes: • Fastest way to build a...
    ▶ How to implement Google sign-in on Flutter with Supabase on iOS, Android & Web: • How to implement Googl...
    👇 Learn more about Supabase 👇
    🕸 Website: supabase.com/
    🏁 Get started: app.supabase.com/
    📄 Docs: supabase.com/docs
    🔔 Subscribe for more tutorials and feature updates from Supabase: / @supabase
    📱 Connect with Us:
    🐙 Github: www.github.com/supabase
    💬 Discord: www.discord.supabase.com/
    🐦 Twitter: / supabase
    ▶ Instagram (follow for memes): / supabasecom
    ABOUT SUPABASE:
    Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
    Build in a weekend, scale to millions.
    #Supabase #AppDevelopment #RealtimeApps #DeveloperTools
  • НаукаНаука

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

  • @AL-hk3oo
    @AL-hk3oo Год назад

    very nice, good tutorial and steps! 👍👍

  • @alifellahi
    @alifellahi 11 месяцев назад

    nice tutorial, very informative, thanks tyler :)

  • @edycarreyes99
    @edycarreyes99 Год назад

    Very simple and very amazing 🎉

  • @eliuddyn
    @eliuddyn Год назад +1

    Amazing 🔥🔥

  • @lasifuta1573
    @lasifuta1573 Год назад +2

    Great video! This Supabase channel has become my WIKI to learn Supabase. Could you also create a video related Oauth sign up/in using Supabase with Ionic/Capacitorjs on iOS device?

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

    cok iyi video bayıldım

  • @SRG-Learn-Code
    @SRG-Learn-Code 11 месяцев назад +1

    I would like to learn how supabase auth works internally and why this model is used.

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

    I followed all the steps but it gave me an error that( Undefined name 'supabase'.
    Try correcting the name to one that is defined, or defining the name). in statment final session = supabase.auth.currentSession;

    please answer me

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

    Hi, how to sign up with password but confirm it via otp or magic link?

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

    More please

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

    Whats the difference between supabase.auth.currentSession and supabase.auth.user or currentUser? Which one should we use to check if Im signedIn ?

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

      Most of the time, if currentSession exists, then currentUser exists. The only time this is not the case would be when a user signs up with a password, but has not confirmed their email address or the phone number. In this scenario, currentUser will have a value but currentSession will be null. In this state, users will not be able to pass RLS policies created using auth.uid() function, so I'd say use currentSession to determine whether the user is signed in or not!

  • @romeroo98
    @romeroo98 Год назад

    is there any upcoming tutorial for uploading profile pics into a bucket and save the avatarUrl into profiles table?

    • @Supabase
      @Supabase  Год назад

      Yup, will be coming up!

  • @kamil_supabase_enjoyer
    @kamil_supabase_enjoyer Год назад +1

    🥳🥳🥳🥳🥳🥳

  • @droidxxi
    @droidxxi Год назад +1

    Hi, I want use contains() method on stream. How can I do that?

    • @droidxxi
      @droidxxi Год назад

      I want to do this:
      supabase.from("room_members").stream(primaryKey:['room_id'].contains(room_members,[my_id]). execute();
      But contains() method is not working with stream() method.

    • @Supabase
      @Supabase  Год назад

      Looks like `inFilter` is the filter you are looking for: supabase.com/docs/reference/dart/stream

  • @businessoftechnology
    @businessoftechnology Год назад

    Does this work with SDK 3+? The example was built with SDK

    • @Supabase
      @Supabase  Год назад

      Are you referring to the Flutter SDK v3? If so, yes it does!

    • @Supabase
      @Supabase  Год назад

      Oh, I see that you are referring to the Dart SDK version. Yup, it should work fine, but let us update the version constraints right now! Thanks for reporting!

    • @businessoftechnology
      @businessoftechnology Год назад

      @@Supabase Yes, I just installed Flutter 3.10 which uses Dart 3. Followed the directions step by step and didn't get through. I figure V 3 will only be a short roadbump. :)

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

    we want a complete project to know how to make the heavy work in the server side🔴🔴🔴

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

    could you please do a video over basic login with email and password? I can't find any good tutorials or documentation. I am coming from firebase and am used to using a stream builder but haven't found anything that goes over it.

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

      Do you have anything in particular that you are confused with about email + password sign-in?

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

      @@Supabase no I’m dumb, i figured out what I was doing wrong. I spent roughly a day trying to convert my auth from firebase to supabase and in the time that I wrote the original comment to now I got it mostly figured out. But it would be nice for noobs like myself coming from firebase to have a email and password stream builder video cause there wasn’t much on the topic, or at least that I could find

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

      @@the_dude_josh Hey, I am trying to do the same. Can you tell me how you did it?

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

      @@21abhinavpatel if you can find a way for me to send you the code snippet or a way to communicate outside of RUclips comments then I for sure can help

  • @randomtimessomehow
    @randomtimessomehow Год назад +1

    what's supamünchenfest? I'm from Munich 😅

    • @Supabase
      @Supabase  Год назад +1

      Nice! That t-shirt is from a company off-site we had in Munich a year ago!

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

    only problem is Apple testers, apparently never get the link so your app never gets published

  • @youcefwippert
    @youcefwippert Год назад +1

    I like these Videos but i am still waiting for a decent video for Oauth using Flutter and Superbase

    • @Supabase
      @Supabase  Год назад +1

      Auth videos will be coming out soon!

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

    Very amazing Tyler! Thank you.
    I've got a question please. I'm working on Authentication using only phone number with Twilio. So I used the supabase.auth.signInWithOtp(phone: phone) method. On execution, I've an "Database error saving new user".
    How can I solve it please?
    Once more, thank you!

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

      Finally, I've resolved. The problem was in my profiles table.
      Thank you!