How to set up forgot password custom actions with Flutterflow and Supabase

  Рет қаралды 3,822

rapidmvp

rapidmvp

Күн бұрын

Пікірлер: 43
@alexjunio_prof
@alexjunio_prof 9 ай бұрын
Thank you! Worked for me.
@axell9075
@axell9075 3 ай бұрын
Thanks for you help, worked for me !
@gifproductions2
@gifproductions2 4 ай бұрын
Thank you! I was wondering about a little bit of extra security. Do you have idea how to implement 2 password boxes that check if they're the same before changing the password?
@ChristophGeiser
@ChristophGeiser 3 ай бұрын
You just add a conditional action before you start the password change process. There you check if the content of both texte widgets are equal. Then add all the actions for changing the password to the "true" part and add an alert with an error message to the false part.
@JuanPerez-vv5lk
@JuanPerez-vv5lk 9 ай бұрын
Excellent video. but why didn't you do a demonstration to see how it works?
@MEdel2204
@MEdel2204 7 ай бұрын
Thank you so much!!
@rogeriosca
@rogeriosca 7 ай бұрын
Thank you!!!
@wesseldieben7490
@wesseldieben7490 8 ай бұрын
Thanks for the video, this only works for web application right, how could this work with an mobile application?
@aplicativoagricola
@aplicativoagricola 9 ай бұрын
I liked the video, it's a shame that I couldn't understand it properly so far it didn't work, I could have re-recorded it and shown it step by step. Maybe it would be interesting
@rapidmvp
@rapidmvp 9 ай бұрын
I will be doing a step by step setting up an app including the auth in a couple of weeks. I’ll film as I build so may be easier to follow.
@yorgohoebeke
@yorgohoebeke 10 ай бұрын
Thank you!
@daleoshea4204
@daleoshea4204 8 ай бұрын
Where do I find my site URL for the Supabase email If i haven't published my app yet?
@geopopos
@geopopos 8 ай бұрын
for some reason the redirectTo url is going to localhost:3000. did you run into this issue at any point? i did update my supabase url configurations
@rapidmvp
@rapidmvp 8 ай бұрын
Did you also add the site url, it’s in the section above on that page. I think localhost:3000 is the default. It needs that and then the individual page url for redirection.
@geopopos
@geopopos 8 ай бұрын
@@rapidmvp if you're talking about in the supabase URL config yeah I changed the site_url and updated the allowed URL. if there is an area to do this in flutterflow no I did not 👀
@rapidmvp
@rapidmvp 8 ай бұрын
@@geopopos there shouldn’t be anything to do in Flutterflow on the url side. As long as you publish the app and there is a page that Supabase points to, it should be good.
@anderock02
@anderock02 7 ай бұрын
this work in a mobile app?
@jaguarconsultoriadigital8147
@jaguarconsultoriadigital8147 10 ай бұрын
Grateful !!!
@Wasi_sirshaar
@Wasi_sirshaar 10 ай бұрын
Can we create a custom action for signup also? need guidelines.
@rapidmvp
@rapidmvp 10 ай бұрын
Thinking about this already as I want to add a Captcha, which seems only natively possible with Firebase.
@louisgautier7622
@louisgautier7622 4 ай бұрын
@@rapidmvp Hello. Do you think about doing the same tutorial for email verification when user sign up ? It would be awesome and I think lot of people search for this. Thanks !
@rapidmvp
@rapidmvp 4 ай бұрын
@@louisgautier7622 it’s on the list. I may do this next week.
@louisgautier7622
@louisgautier7622 4 ай бұрын
@@rapidmvp Thank you very much. May I ask a question about this password tutorial. I setted up everything. I received the email, click on the link and go to the new password page. But when I want to update it, nothing happen when I click on the button. One thing is I didn’t understand how the function know which user needs to be updated, because no one is really authenticated when updating his password. Thank you very much for your help !
@rapidmvp
@rapidmvp 4 ай бұрын
@@louisgautier7622 The url of the magic link in the password reset email contains the access token that logs the user in, therefore allowing then to reset password
@monlak01
@monlak01 7 ай бұрын
I am getting this error from FF: "The function 'UserAttributes' isn't defined. Try importing the library that defines 'UserAttributes', correcting the name to the name of an existing function, or defining a function named 'UserAttributes'." The package is being called at the beginning. I have no idea where that function should be.
@rapidmvp
@rapidmvp 7 ай бұрын
I’ll take a look and get back to you
@monlak01
@monlak01 7 ай бұрын
@@rapidmvp It works though. I checked the "Exclude from compilation", the error becomes a warning. I deployed and it worked well... :)
@emeriktremblay3881
@emeriktremblay3881 5 ай бұрын
I have the same error
@eemersonalmeida
@eemersonalmeida 6 ай бұрын
hello, can you help with this error: The setter 'customError' isn't defined for the type 'FFAppState'. Try importing the library that defines 'customError', correcting the name to the name of an existing setter, or defining a setter or field named 'customError'.dartundefined_setter. tks
@rapidmvp
@rapidmvp 6 ай бұрын
You need to create an app state called customError
@eemersonalmeida
@eemersonalmeida 6 ай бұрын
@@rapidmvp tks man! it works.
@anaphylaxis6599
@anaphylaxis6599 10 ай бұрын
Is it the same with the update email?
@rapidmvp
@rapidmvp 10 ай бұрын
You can just use the Auth update email action within FF for this
@anaphylaxis6599
@anaphylaxis6599 10 ай бұрын
@@rapidmvpi’m not sure how to set-up the update email part of it after trying to do it in the first part, also is there a way to possibly redirect the user to the app instead of the web when they clicked the forgot password link in the confirmation email as i’m using it for an app?
@rapidmvp
@rapidmvp 10 ай бұрын
@@anaphylaxis6599 I can do a quick video on update email next week. I think with Supabase it has to go via url for the password update. Doing it with one time password via sms may work though.
@anaphylaxis6599
@anaphylaxis6599 10 ай бұрын
hello there seems to be an error with this now? can you check again please? thank you so much
@rapidmvp
@rapidmvp 10 ай бұрын
I’ll have a look into it.
@monlak01
@monlak01 7 ай бұрын
@@rapidmvp seems like it's not working because FF is not identifying the 'UserAttributes' function that is used.
@rapidmvp
@rapidmvp 7 ай бұрын
@@monlak01 Before the “Future changePassword” line, you need: Import ‘package:supabase/supabase.dart’;
@monlak01
@monlak01 7 ай бұрын
@@rapidmvp wow... I thought it was already being called (and when I added it, FF said it was redundant...but seems like it is not! :) You are right, it worked.
@sanjaychristian8082
@sanjaychristian8082 Ай бұрын
I had some issues, but this is what i did:import 'package:supabase_flutter/supabase_flutter.dart'; Future newCustomActionResetPassword(String? newPassword) async { // Add your function code here! try { if (newPassword == null || newPassword.isEmpty) { throw Exception('New password cannot be null or empty'); } final response = await Supabase.instance.client.auth.updateUser( UserAttributes( password: newPassword, ), ); // Return true if the response contains a user return response.user != null; } catch (error) { // Handle errors if needed print('Error: $error'); FFAppState().update(() { FFAppState().customError = 'Error: $error'; }); // Indicate that the password change failed return false; } }
How to Set Up @Supabase Authentication in FlutterFlow
16:05
FlutterFlow
Рет қаралды 43 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН
FlutterFlow- How to Recover Password (Full Tutorial 2023)
7:55
Nocode Africa
Рет қаралды 9 М.
Reset password with Nextjs 14 & @Supabase - Course part 5
13:46
Codewithguillaume
Рет қаралды 11 М.
Integrate Stripe payments into FlutterFlow website
12:15
How to update user email with Flutterflow and Supabase
5:57
rapidmvp
Рет қаралды 1,7 М.
Create a custom reset password page in your Flutterflow app
22:08
Leo McMillion
Рет қаралды 4,4 М.
FlutterFlow - Authentication (all in one)
15:50
Jim Explains
Рет қаралды 7 М.
How to use loops in Flutterflow
9:33
rapidmvp
Рет қаралды 2,3 М.
Firebase vs Supabase - I Built The Same App With Both
6:21
Your Average Tech Bro
Рет қаралды 128 М.
Custom Authentication (JSON Web Tokens)
13:03
FlutterFlow
Рет қаралды 21 М.