> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-whatsapp-login-extension/whatsapp-login-in-frontend.md).

# WhatsApp Login in Frontend

Once you configure the extension, the Login with WhatsApp option will be added to the login page of your store.

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

Clicking on it will redirect customers to WhatsApp App (mobile users) or WhatsApp Web (desktop/laptop users).

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

It will generate a predefined message to send a request for login through WhatsApp. Click on the send button.

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

If the customer has already registered to the website, they will receive a login link in their WhatsApp.

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

Click on the login link to sign in to the Magento 2 store without a username, password, or OTP. After successful login, a login success message will generate and redirect the customer to the My Account page.

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

If the customer has not registered to the Magento 2 store, they will receive a Create account link on sending a login request.

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

Clicking on the link will redirect customers to the Create Account page. Customers can fill in the details and register by adding their WhatsApp number.

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

After successful registration, it generates a success message and redirects customers to the My Account page.

<figure><img src="/files/7vXyWaJvehJvXEoJB0Oq" alt=""><figcaption></figcaption></figure>

If the link is expired, it will redirect customers back to the login page with an error message on clicking the login link from WhatsApp.

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

If the customer is already logged in to the store, it will generate an error message on clicking the login link from WhatsApp.

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


---

# 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.magecomp.com/magento-2-whatsapp-login-extension/whatsapp-login-in-frontend.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.
