> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-codex-update-discord-invite.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Stytch Configuration for Embedded Wallet

> Learn how to configure a Stytch client for your Embedded Wallet instance. Follow steps to create and retrieve a Public Token from the Stytch dashboard.

In order to have Stytch auth integrated into your Embedded Wallet instance, you have to configure a Stytch application in the [Stytch Dashboard](https://stytch.com/dashboard) and configure an Embedded Wallet in [Sequence Builder](https://sequence.build/). Begin, by starting with the following below steps:

<Warning>
  The Stytch authentication is currently in early access. To enable them, please visit [https://sequence.build/earlyaccess](https://sequence.build/earlyaccess) and turn on the functionality.
</Warning>

<Steps>
  <Step title="Sign Up / Sign In">
    First access the [sign in page](https://stytch.com/dashboard):
  </Step>

  <Step title="Create a Project">
    From the dropdown of projects once signed in, select `Create new project`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_create_new_project.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=3f9de6eaf9e97eaf0270ceab131aabf5" alt="Create a Project" width="1556" height="677" data-path="images/builder/stytch_create_new_project.png" />
    </Frame>

    Then select `CONSUMER AUTHENTICATION`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_create_project.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=4dc856b1585299ff634791b5d366d768" alt="Create new Project" width="1556" height="677" data-path="images/builder/stytch_create_project.png" />
    </Frame>

    And finally select `Create project`
  </Step>

  <Step title="Obtain a Stytch Project ID & Stytch Public Token">
    From the bottom of the first screen of `Home` copy and save somewhere safe the `Stytch Project ID` & `Stych Public Token`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_obtain_keys.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=069232cd68ee438261aeeddd9560797a" alt="Obtain a Project ID & Stytch Public Token" width="1398" height="659" data-path="images/builder/stytch_obtain_keys.png" />
    </Frame>
  </Step>

  <Step title="Update the Redirect URL">
    For local development use `http://localhost:4444/authenticate`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_create_new_redirect_uri.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=eeebf6b4ffe42c16c722f45481e70897" alt="Update Redirect Url" width="1616" height="763" data-path="images/builder/stytch_create_new_redirect_uri.png" />
    </Frame>

    Enable `Login` and `Register`, select `Set as default` and select `Confirm`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_create_new_redirect_uri_confirm.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=83ed1434460d504d2ce449609dd5223d" alt="Obtain a Project ID" width="1536" height="705" data-path="images/builder/stytch_create_new_redirect_uri_confirm.png" />
    </Frame>
  </Step>

  <Step title="Update the Allowed Origins for SDK">
    For local development, ensure that your development URL is passed correclt such as `http://localhost:4444`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/e8KzJBLV3IyTKOGO/images/builder/stytch_add_url_to_sdk.png?fit=max&auto=format&n=e8KzJBLV3IyTKOGO&q=85&s=2fd079f23587f20240c6913e6b9941aa" alt="Update url for SDK" width="1750" height="728" data-path="images/builder/stytch_add_url_to_sdk.png" />
    </Frame>
  </Step>

  <Step title="Builder Configuration">
    Next, enable Stytch authentication in the Sequence Builder by accessing your Project, the Embedded Wallet Configuration section, then adding a Login Provider:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/t2lPiUtpyQBvrU5J/images/builder/builder_stytch_add_provider.png?fit=max&auto=format&n=t2lPiUtpyQBvrU5J&q=85&s=44f78824a1be93551b4e6d7e25ef542d" alt="add login provider" width="1880" height="722" data-path="images/builder/builder_stytch_add_provider.png" />
    </Frame>

    Finally, selecting `Stytch` in the dropdown.

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-codex-update-discord-invite/t2lPiUtpyQBvrU5J/images/builder/builder_stytch_select_provider.png?fit=max&auto=format&n=t2lPiUtpyQBvrU5J&q=85&s=7e2bc86d88e420653cf29b440d3fcdb6" alt="select stytch" width="2459" height="1106" data-path="images/builder/builder_stytch_select_provider.png" />
    </Frame>

    Then inputting your `Stytch Project ID`, selecting `Save changes` and selecting the purple `Update configuration` to input your password to update the Configuration.
  </Step>
</Steps>
