Setting up Supabase Auth with Flutter

Поделиться
HTML-код
  • Опубликовано: 27 дек 2023
  • Level Up Your Flutter App with Supabase Authentication
    Struggling with user logins and secure data in your Flutter app? Look no further than Supabase! This powerful backend-as-a-service platform makes authentication a breeze, and in this video, I'll quickly guide you through setting it up step-by-step.
    Here's what you'll learn:
    - Connecting your Flutter app to Supabase: We'll show you how to configure your project and access Supabase's powerful features.
    - Implementing email/password logins
    Whether you're a beginner or a seasoned Flutter developer, this video is for you! We'll keep things clear, concise, and packed with practical examples.
    By the end, you'll have a fully functional authentication system in your Flutter app, ready to take your users' experience to the next level.
    Don't forget to:
    Like and subscribe for more Flutter tutorials!
    Leave a comment with your questions or feedback.
    Share this video with your fellow Flutter devs!
    Let's build secure and scalable Flutter apps together!
    #flutter #supabase #authentication #firebasealternative #mobiledev #backend
    P.S. Check out the video resources section for helpful links and code snippets!
    Ready to take your Flutter app to the next level? Click play and let's get started!
  • НаукаНаука

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

  • @nothing_is_real_0000
    @nothing_is_real_0000 13 дней назад +1

    Hi Brad, thanks so much for great tutorial on getting started . This has really helped me to get started with Supabase auth. Though this may be obvious to you, for someone getting started it'll be helpful if you could add things like how to manage "logged stages"/view members only page, and some other regular stuff like forgot password.. Still thanks again for great tutorial!

    • @BradCypert
      @BradCypert  11 дней назад

      Glad it was helpful! That’s a great suggestion!

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

    Thankyou Brad for making this...
    Very nicely and easily explained...

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

      Glad it was helpful!

  • @xhidnoda
    @xhidnoda 7 месяцев назад +2

    Great video! finally something easy!

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

      Glad you liked it!

  • @dixanhernandez2107
    @dixanhernandez2107 5 месяцев назад +1

    Thanks for this tutorial Brad, it´s really easy to understand, it was very helpful.

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

      I’m really glad it was helpful for you!

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

    Nice video!

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

      Glad you enjoyed it

  • @priyanaik4896
    @priyanaik4896 5 месяцев назад +1

    Thankyou for this video. Can you tell me what can be done if i just want to create log in and validate user from existing database in auth

    • @BradCypert
      @BradCypert  5 месяцев назад +1

      I think I'd need a bit more context. Are you using Supabase? If not, you'd need to call whatever authorization server you may be using (Auth0, Okta, some hand rolled server, etc).

  • @samuelgulliver886
    @samuelgulliver886 5 месяцев назад +1

    Thanks for the video. Just one question -
    Do you need to handle errors when logging in using signInWithPassword? Likewise when signing up would there be an error for signing up with an already existing email?

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

      Yes you do need to handle errors when signing up

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

    why am getting platform error when i run this in android emulator.....

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

      Couldn’t tell you unless I knew the errror, too. Mind sharing it here?

  • @priyanaik4896
    @priyanaik4896 5 месяцев назад +1

    How can you make or edit profile page for the user after he logs in

    • @BradCypert
      @BradCypert  5 месяцев назад +1

      In this case, you'd create a profile table in Supabase and build a Flutter UI to manage that profile. Then you'd use the Supabase package to write that data to the newly created table. Hope this helps!

    • @priyanaik4896
      @priyanaik4896 5 месяцев назад +1

      @@BradCypert thankyou

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

      @@priyanaik4896happy to help! Let me know how it turns out!

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

    The named parameter 'password' isn't defined.
    Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'password'.dartundefined_named_parameter
    2 positional arguments expected by 'signUp', but 0 found.
    Try adding the missing arguments.dartnot_enough_positional_arguments
    this is the error i am getting
    in the snippet below
    MaterialButton(
    onPressed: () async {
    final sm = ScaffoldMessenger.of(context);
    final authResponse = await supabase.auth.signUp(
    password: passwordController.text, email: emailController.text);
    sm.showSnackBar(SnackBar(
    content: Text("Logged In: ${authResponse.data!.email!}")));
    },
    Can u help me out?

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

      Try to inspect the signUp method (if you’re in VsCode try command clicking it or control clicking it). This should show you the method signature. It’s quite possible that they’ve removed the named parameters in favor of positional parameters, in which case, converting the named parameters to positional should solve your issue

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

      @@BradCypert yeah I did that actually and it worked, thanks though :)

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

      @@un_identifed Glad you're unstuck! Keep building, friend!