# Effortless Login with OTP

To enable the **Login with OTP** feature in your SimiCart-powered mobile app, you’ll need to connect it with Shopify’s Customer Account API via the Headless app developed by Shopify.

## Step 1: Install the Headless App

Go to the [**Headless**](https://apps.shopify.com/headless?st_source=autocomplete) app on the Shopify App Store and click **Install**.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-969f87234f1d96332b3b4ef73cdf8517cde45784%2Fimage%20(132).png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 2: Create a Storefront

After installation, open the **Headless** app from your Shopify Admin and click **Create Storefront**.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-36a490ed59b33ea18ccfda6085961c246595c7e0%2Fimage%20(130).png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 3: Configure & Retrieve Client ID

In the Shopify Admin, open the **Headless** app. Scroll down to the **Manage API access** section, where you'll see both the *Storefront API* and *Customer Account API* options. Locate **Customer Account API**, then click the **Manage** button next to it, as shown in the screenshot below.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-1ffcbac4c0230c971038808eb3b1f85855a4c377%2Fimage%20(131).png?alt=media" alt=""><figcaption></figcaption></figure>

On the next screen, change the **Client type** to **Public (Mobile app)** and click **Save**.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-f578437521179a61b21ac310237af2769b79bf26%2Fimage%20(133).png?alt=media" alt=""><figcaption></figcaption></figure>

After saving, copy the **Client ID** in **Customer Account API credentials** section below. You’ll need it in the next step.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-011b51eed970a44fbe0c98e2b7296896b4b42aa3%2Fimage%20(134).png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 4: Enable Login with OTP in SimiCart

In your SimiCart Dashboard, go to the **Features** section and select to configure **Login with OTP**.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-44a714af9fcba17e41abdcdb66cb9a72b2adee9d%2Fimage%20(137).png?alt=media" alt=""><figcaption></figcaption></figure>

Paste the **Client ID** you copied from the Headless app into the **Client ID** field, then click **Check connection** to verify the authentication & enable the feature for your mobile app.

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-1afd22537ce57c5bd1d779e29a4e8506a1f9ee92%2Fimage%20(139).png?alt=media" alt=""><figcaption><p>Paste the <strong>Client ID</strong> you copied from the Headless app into the <strong>Client ID</strong> field</p></figcaption></figure>

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-57386e64653d90c1f8a58561841fe635b4ca01ea%2Fimage%20(135).png?alt=media" alt=""><figcaption><p>Click <strong>Check connection</strong></p></figcaption></figure>

<figure><img src="https://4116947012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZvOReVnJPMF91ppETQNN%2Fuploads%2Fgit-blob-a42aba48cb71bef8932bced5d2503deabd79357d%2Fimage%20(136).png?alt=media" alt=""><figcaption><p>And done!</p></figcaption></figure>

**Note:** This feature can only be enabled if you use Shopify’s recommended version of customer accounts for your store.
