I have a Flutter app where I have used the supabase_auth_ui
package to implement the authentication feature using Supabase. I have successfully created a user through email and password.
Now, I wanted to implement Forgot Password feature. For that, according to docs, I had to use resetPasswordForEmail function. I’m receiving the reset password email but when I click the link provided in the email, I’m encountering Proofpoint warning with the message – You’ve Reached This Page In Error. I have spent hours but I could not figure out how to resolve this issue.redirectTo error page
This is the code –
ElevatedButton(
onPressed: () async {
try {
if (!_formKey.currentState!.validate()) {
return;
}
setState(() {
_isLoading = true;
});
final email = _emailController.text.trim();
await supabase.auth.resetPasswordForEmail(email);
widget.onPasswordResetEmailSent?.call();
} on AuthException catch (error) {
widget.onError?.call(error);
} catch (error) {
widget.onError?.call(error);
}
},
child: Text(localization.sendPasswordReset),
),
I’m not sure what to provide for the redirectTo field in the above function call.
Further, I need assistance on this. Appreciate any form of help.
Expected behavior would be that when I click the link in the mail, it should redirect to a screen in my app where I can reset the password. This is not happening.