> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Set a Login URL

## Article: Login URL

## Article Link: https://dev.wix.com/docs/go-headless/self-managed-headless/authentication/members/custom-login-page/set-a-login-url.md

## Article Content:

# Set a Login URL

When you create a custom login page, you need to define a login URL that points to your custom login page. This tells Wix where to redirect users when they encounter Wix-hosted pages that require login, for example a checkout page. If you use a Wix login page instead, this setup isn't required since Wix handles the login process automatically. 

Learn more about [login options](https://dev.wix.com/docs/go-headless/self-managed-headless/authentication/about-authentication.md) for Headless sites.


To set a login URL:

1. In your project dashboard, go to **Settings** > **Development & integrations** > [**Headless Settings**](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Foauth-apps-settings).

1. From **Headless clients**, click the 3 dots to the right of the OAuth app you want to edit. Choose **Settings** to open the app's settings page:

   ![Click OAuth App Settings](https://wixmp-833713b177cebf373f611808.wixmp.com/images/7c76d81ed8599db6b40ef817464adb44.png)

1. Scroll down to the **URLs** section and go to the **Login URL** section.

   ![Login URL](https://wixmp-833713b177cebf373f611808.wixmp.com/images/61f254fa8ab844e69f56a21c7650bbc0.png)

1. Enter the URL to your custom login interface. When Wix needs to log in a member, the member will be redirected to the URL you entered.

1. Click **Save** to save your changes and return to **Headless Settings**.