diff --git a/docs/ff-integrations/authentication/supabase-auth/auth-actions.md b/docs/ff-integrations/authentication/supabase-auth/auth-actions.md index 81711417..8cdd6156 100644 --- a/docs/ff-integrations/authentication/supabase-auth/auth-actions.md +++ b/docs/ff-integrations/authentication/supabase-auth/auth-actions.md @@ -104,7 +104,7 @@ Here’s how you can add the Supabase reset password feature to your app: 1. On the **ForgotPassword Page**, add the **Send Reset Password Email** action and set the **Email Field** dropdown to the widget that accepts the user's email address. This action will send the reset password link to the provided email. 2. The reset link sent to the user will open the **UpdatePassword Page**. On that page, add the **Update Password** action and set the **Password Field** and **Confirm Password Field** to the respective input widgets. -3. Copy the route name of the **UpdatePassword Page** and paste it into the **Supabase Dashboard > Authentication > Email Templates > Reset Password > Source**. After **`"{{ .ConfirmationURL}}"`** add **`"/[here]"`** only if you're not using a custom redirect URL. If using a custom redirect URL, the confirmation URL will redirect directly to your specified path. +3. Copy the route name of the **UpdatePassword Page** and paste it into the **Supabase Dashboard > Authentication > Email Templates > Reset Password > Source**. After **`"{{ .ConfirmationURL}}"`** add **`"/[here]"`** only if you're not using a [custom redirect URL](#use-custom-redirect-urls). If using a custom redirect URL, the confirmation URL will redirect directly to your specified path. 4. [Deploy your app to the web](../../../testing-deployment-publishing/publishing/web-publishing.md). 5. Copy the URL of your deployed project and paste it into the **Supabase Dashboard > Authentication > URL Configuration > Site URL**. @@ -140,7 +140,41 @@ Here’s how you can add the Supabase reset password feature to your app:

+### Use Custom Redirect URLs +Instead of relying on the default `{{ .ConfirmationURL }}` path, you could optionally configure a **custom redirect URL** in Supabase. This option allows you to bypass the default setup and send users directly to a custom page in your app for resetting their password. + +To configure a custom redirect URL: + +1. When adding the **Send Reset Password Email** action in FlutterFlow, enter the **Redirect To** URL. For example `http://my-site.com/resetPassword`. +2. Whitelist this custom URL by navigating to **Supabase Dashboard > Authentication > URL Configuration > Redirect URL**, and click **Add URL** to include it. +3. Update the reset password template. Go to **Supabase Dashboard > Authentication > Email Templates > Reset Password > Source** and ensure only `{{ .ConfirmationURL }}` is present in the template (remove any appended route names). + +
+ +
+

## Delete User