# MFA One Time Password - Unauthorised

**URL:** <https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761>\
**Category:** Get Help\
**Tags:** auth0, mfa\
**Created:** [January 23, 2020, 11:56am UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761 "2020-01-23T11:56:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophia](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sophia](https://community.auth0.com/u/sophia)\
**Post date:** [January 23, 2020, 11:56am UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761/1 "2020-01-23T11:56:36Z")

</div>

Hi,

I’ve created a React SPA using the ‘Create Application’ feature in getting started. I’ve enabled One-Time Password only in the MFA settings and added [http://localhost:3000](http://localhost:3000) to Allowed Callback URLs, Allowed Web Origins and Allowed Logout URLs in the application settings. The MFA works fine up to the point of successful authentication using Authy OTP, but when it tries to redirect to my desired ‘redirect\_uri’ which is simply [http://localhost:3000](http://localhost:3000) a 401 is returned via /mf?provider=guardian&state=… with ‘Unauthorized’ in the top left corner.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [January 23, 2020, 9:39pm UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761/2 "2020-01-23T21:39:32Z")

</div>

@sophia

Hello Sophia!  
I would first recommend if you are using any social providers, to get the dev keys for those social providers. The auth0 dev key for social connections has severe limitations.

If you continue to experience issues, could you provide your tenant name and would it be possible to provide a HAR file in a private message? You can find instructions on how to create them here: [Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/guides/generate-har-files)

---

<div class="post-metadata">

**Author:** ![sophia](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sophia](https://community.auth0.com/u/sophia)\
**Post date:** [January 24, 2020, 12:43pm UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761/3 "2020-01-24T12:43:31Z")

</div>

Thanks Karen, I was missing the dev keys from the social provider. It’s working now

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 24, 2020, 12:46pm UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761/4 "2020-01-24T12:46:51Z")

</div>

Glad you have it working!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 8, 2020, 12:46pm UTC](https://community.auth0.com/t/mfa-one-time-password-unauthorised/36761/5 "2020-02-08T12:46:55Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
