# Getting 401 when using Drop In Components

**URL:** <https://discuss.dwolla.com/t/getting-401-when-using-drop-in-components/7212>\
**Category:** General\
**Created:** [June 23, 2021, 9:51am UTC](https://discuss.dwolla.com/t/getting-401-when-using-drop-in-components/7212 "2021-06-23T09:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcolentava](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mcolentava/32/3049_2.png) [@mcolentava](https://discuss.dwolla.com/u/mcolentava)\
**Post date:** [June 23, 2021, 9:51am UTC](https://discuss.dwolla.com/t/getting-401-when-using-drop-in-components/7212/1 "2021-06-23T09:51:48Z")

</div>

Good day!

I am trying to test the drop-in components by following the guide in [Dwolla Blog](https://www.dwolla.com/updates/low-code-drop-in-components/#part-01). Unfortunately, I am stuck with the 401 error.

I created the token using Postman (to simulate server-side action).

Sending the screenshot of the code and the output here.

 ![Screen Shot 2021-06-23 at 5.47.13 PM](https://global.discourse-cdn.com/dwolla/original/2X/d/da79dd6f755cb65aa2758e925142fe73e1c33660.png)

 ![Screen Shot 2021-06-23 at 5.46.59 PM](https://global.discourse-cdn.com/dwolla/original/2X/2/21802b307365df7f6561324d103ecb0a22a4fe0b.png)

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [June 23, 2021, 4:49pm UTC](https://discuss.dwolla.com/t/getting-401-when-using-drop-in-components/7212/2 "2021-06-23T16:49:32Z")

</div>

Hi @mcolentava,

Ah looks like the code snippets in the blogpost need to be updated with the new “token” key-value pair updates.

Could you be getting an error because your token is wrapped in back-ticks?

```auto
token: () => Promise.resolve(`{{token:'xxxxxxx'}}`),

```

Would you be able to to replace that line with the following syntax and see if it goes through?

```auto
token: (req) => Promise.resolve({token: 'token123abcd'})

```

---

<div class="post-metadata">

**Author:** ![mcolentava](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mcolentava/32/3049_2.png) [@mcolentava](https://discuss.dwolla.com/u/mcolentava)\
**Post date:** [June 24, 2021, 2:27pm UTC](https://discuss.dwolla.com/t/getting-401-when-using-drop-in-components/7212/3 "2021-06-24T14:27:04Z")

</div>

Thank you 🙂 This is resolved.

Attaching here the final code: In addition to this, I also realized that the token value should be the token generated through Dwolla Dashboard and not “Client Token” generated by the backend.

Thank you for the assistance.

 ![image](https://global.discourse-cdn.com/dwolla/original/2X/9/927bc9553aabf1bbb822736763e06286b0a87a7e.png)
