# Web3Auth

Web3Auth securely manages ERC4337 smart account wallets on behalf of your users with this simple integration.

{% hint style="info" %}
Web3Auth is the default WaaS provider for RAIRprotocol. We really like the simple setup, reliability, and low cost (<$.05 per MAW and free up to 1000 MAW). If you'd like to add support for other WaaS we'd love for you to fork our repo!&#x20;
{% endhint %}

## &#x20;Integration Steps

1. Create a [free Web3Auth account here](https://dashboard.web3auth.io/login).&#x20;
2. Make sure you also have a valid Alchemy API key (to use Account Kit)
3. Insert Web3Auth API key into [this environment variable](https://github.com/rairprotocol/rair-dapp/commits/dev/rair-front/.env.sample) at build time.&#x20;

```yaml
VITE_WEB3AUTH_CLIENT_ID=<API-KEY>
```

Manage users accounts easily inside of Web3Auth!

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

## Default Frontend

All Frontend work for the Marketplace is prebuilt using the over-the-shelf Web3Auth UI.&#x20;

Frontend should look like this. Settings to enable and disable certain login providers are all handled on Web3Auth side in their dashboard.&#x20;

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

Want to integrate with Web3Auth headlessly? Feel free to modify and extend our codebase!


---

# 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.rairprotocol.org/rairprotocol/integrations/core-technologies/guides/web3auth.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.
