# Integrating Authentication

{% hint style="warning" %}
**Note:** Authentication is not strictly necessary to build a working Roots implementation. If you are trying to get a minimal implementation of your store up and running, you can leave it out for now, and do it later.
{% endhint %}

## Why Authenticate?

There are a number of good reasons to have your users login. First of all, if a user is logged in, they will not need to re-enter all of their information every time they make a purchase, which will lead to a smoother experience and fewer cart abandonments. Additionally, some payment methods require users to have an account. If you offer discounts to particular user groups (e.g. seniors or veterans), users will need an account to be able to take advantage of them.

Finally, you are able to personalize the shopping experience for them. If they have made previous purchases, you can prioritize potentially relevant products in your menu, and in the future we will make it easier to do this.

{% content-ref url="/pages/xTOlN3g08uQuctkETjal" %}
[Enabling Jane's Built-In Authentication](/jane-docs/implementing-roots/integrating-authentication/enabling-janes-built-in-authentication.md)
{% endcontent-ref %}

{% content-ref url="/pages/iohjDZYzSE2KF6Qxjmeh" %}
[Implementing Cognito Auth](/jane-docs/implementing-roots/integrating-authentication/implementing-cognito-auth.md)
{% endcontent-ref %}


---

# 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.iheartjane.com/jane-docs/implementing-roots/integrating-authentication.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.
