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! Наука
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!
Glad it was helpful! That’s a great suggestion!
Thankyou Brad for making this...
Very nicely and easily explained...
Glad it was helpful!
Great video! finally something easy!
Glad you liked it!
Thanks for this tutorial Brad, it´s really easy to understand, it was very helpful.
I’m really glad it was helpful for you!
Nice video!
Glad you enjoyed it
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
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).
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?
Yes you do need to handle errors when signing up
why am getting platform error when i run this in android emulator.....
Couldn’t tell you unless I knew the errror, too. Mind sharing it here?
How can you make or edit profile page for the user after he logs in
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!
@@BradCypert thankyou
@@priyanaik4896happy to help! Let me know how it turns out!
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?
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
@@BradCypert yeah I did that actually and it worked, thanks though :)
@@un_identifed Glad you're unstuck! Keep building, friend!