> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-ai/readme/supabase/configuring-authentication-urls.md).

# Configuring Authentication URLs

When you generate an eMOBIQ AI application with Supabase login, verification emails (sign-up confirmations, password resets, magic links) will redirect users to the **wrong URL** by default. This is a one-time configuration in your Supabase project that you need to do before authentication will work.

{% hint style="info" %}
The app code is working correctly. Supabase just needs to be told where your app is running.
{% endhint %}

***

## Step 1: Get Your App URL from eMOBIQ AI

Your app URL is found on your debug page in the **eMOBIQ AI portal**.

{% hint style="info" %}
If you are still testing, use the **debug agent URL**. Once you publish your app, repeat this process with the **published app URL**.
{% endhint %}

***

## Step 2: Update Supabase URL Configuration

In your [Supabase dashboard](https://supabase.com/dashboard), go to your project and navigate to:

**Authentication → URL Configuration**

You will see two fields to update:

1. **Site URL** — Replace the existing value (e.g. `http://localhost:3000`) with your eMOBIQ AI app URL. Wildcards are not allowed here. This is the web-url if you are testing on the platform.
2. **Redirect URLs** — Click **Add URL** and add the same URL. This allowlist controls where Supabase is permitted to redirect users after authentication.

<figure><img src="/files/z9Vz6n7Yv419Xy8uMHe0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/SSuGnI44IjvbdxIQrshN" alt=""><figcaption></figcaption></figure>

Click **Save changes** when done.

<a href="https://supabase.com/docs/guides/auth/redirect-urls" class="button primary" data-icon="book">Supabase Redirect URL Guide</a>

{% hint style="warning" %}
If you use both a debug URL and a published app URL, add **both** to the Redirect URLs list. The Site URL should be set to whichever environment you are currently working in.
{% endhint %}

***

## Verification

Register a new account in your app. Open the verification email — the link should now point to your eMOBIQ AI app URL and complete successfully.

***

{% hint style="info" %}
If you want users to access your app without registering, you can enable anonymous sign-ins alongside email authentication.

[Anonymous Sign-Ins](/emobiq-ai/readme/supabase/anonymous-sign-ins.md)
{% endhint %}
