# How to require login to view or use the wishlist?

### How to Set Login Requirements

#### To require a login for viewing or using the wishlist:

1. Locate Swish's App Settings app embed in the theme editor.

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

2. Within the App Settings app embed, scroll down to the Preferences section.

<figure><img src="/files/74mybgj55IrvjvTlfl6m" alt=""><figcaption></figcaption></figure>

3. In the Access mode dropdown select the preferred access level.

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

4. Save the changes.

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

### Access Mode Options Explained

| Option                                    | Description                                                                                   |
| ----------------------------------------- | --------------------------------------------------------------------------------------------- |
| ✅ **Unrestricted access**                 | Anyone can view or use the wishlist without logging in.                                       |
| 🔒 **Require login before use**           | Users must log in **before they can add items** to their wishlist.                            |
| 🔒 **Require login to view list**         | Users must log in to **view their wishlist**.                                                 |
| 🙈 **Hide wishlist without login**        | Hides wishlist UI unless the user is logged in.                                               |
| 🧑‍💼 **Hide wishlist without B2B login** | Hides wishlist UI for non-B2B users. Customers must be logged into a **Shopify B2B account**. |


---

# Agent Instructions: 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:

```
GET https://docs.swish.app/how-to-require-login-to-view-or-use-the-wishlist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
