> For the complete documentation index, see [llms.txt](https://docs.agentlabs.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agentlabs.dev/core-concepts/user-authentication.md).

# User Authentication

As we said previously, AgentLabs allows you to manage and authenticate your users.

## Authentication methods

AgentLabs lets you configure the authentication methods you want to register and sign in your users.

You can configure basic email methods and different oauth2 providers.

The methods you configure will be available to your users.

You can configure them from your [admin console](https://console.agentlabs.dev/).

<figure><img src="/files/URa6gFxNhVE4Tl0edMPz" alt=""><figcaption><p>Configuring authentication methods</p></figcaption></figure>

{% hint style="info" %}
The current auth methods set is limited but we'll rollout more methods as we go :rocket:
{% endhint %}

## Authentication request&#x20;

Once you've configured your auth methods, you can request authentication from your users simply using our SDK.

{% tabs %}
{% tab title="Python" %}

```python
agent.request_login(
   conversation_id="your-conversation",
   text="Please login to access this feature"
)
```

{% endtab %}

{% tab title="TypeScript" %}

```python
agent.requestLogin({
   conversationId: "your-conversation",
   text: "Please login to access this feature"
})
```

{% endtab %}
{% endtabs %}

\
The snippet above will trigger the following in-chat authentication component.

<figure><img src="/files/2MirTASp0DFWDzgT2qx3" alt=""><figcaption><p>Asking for in-chat authentication</p></figcaption></figure>

## Managing your users

Then, you can manage all your application users from your admin console.\ <br>

<figure><img src="/files/JIPk8sZ3mKRWbSAr881q" alt=""><figcaption><p>User management dashboard</p></figcaption></figure>
