> For the complete documentation index, see [llms.txt](https://docs.appmysite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmysite.com/app/access/login/prompt-user-login.md).

# Prompt user login

### How to enable login prompt on app launch?

If you would like to prompt users to log in to your app as soon as it launches, you can enable the login prompt setting. This ensures that users must authenticate themselves every time they access the app.

{% hint style="warning" %}
This feature is available for apps built using the WordPress, WooCommerce, and Custom App product.&#x20;
{% endhint %}

{% embed url="<https://scribehow.com/shared/Enable_login_prompt_on_app_launch__UD3clDJyT6Ki_z99P8BcGw>" %}

* Navigate to the Login Settings:
  * Log in to your AppMySite account.
  * Go to [**Access > Login**](https://app.appmysite.com/app/login) in your dashboard.
* **Enable the Login Prompt**:
  * Click on the Settings icon at the top right of the Login screen.
  * Toggle on "Prompt login on app launch."

Click Save to apply changes.&#x20;

#### **What Happens When This Feature is Enabled?**

* Users will be prompted to:
  * Log in
  * Register
  * Browse as a guest
* If the toggle is disabled, users will be directed to the app home screen upon launch. They will only be asked to log in or register during specific actions, such as checkout.

{% hint style="warning" %}
This feature requires at least one login method to be enabled before the login prompt toggle becomes available.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.appmysite.com/app/access/login/prompt-user-login.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
