# Multifactor authentication for custom login and custom signup

**URL:** <https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125>\
**Category:** Get Help\
**Tags:** nodejs, authentication\_api, sms, custom-login\
**Created:** [April 6, 2017, 2:54am UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125 "2017-04-06T02:54:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhaskar.anupam92](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bhaskar.anupam92](https://community.auth0.com/u/bhaskar.anupam92)\
**Post date:** [April 6, 2017, 2:54am UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125/1 "2017-04-06T02:54:11Z")

</div>

Hello,

I am using a custom signup and custom login for my application using auth0. I would like to implement multifactor authentication for my application i.e get sms verification code when logging in from different device or ipaddress.  
For sign up i am using : /dbconnections/signup  
For login i am using : /oauth/token

technology: angularjs 1.0 for frontend and node js for backend.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [April 7, 2017, 6:01pm UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125/2 "2017-04-07T18:01:28Z")

</div>

You can read about how to setup multifactor authentication in general at: [https://auth0.com/docs/multifactor-authentication](https://auth0.com/docs/multifactor-authentication)

Given you mention that you want to use an additional factor based on SMS the following documentation would also be relevant:

- [Auth0 Guardian](https://auth0.com/docs/multifactor-authentication/guardian/admin-guide#support-for-sms)
- [Configure Cisco Duo Security for MFA](https://auth0.com/docs/multifactor-authentication/duo)

---

<div class="post-metadata">

**Author:** ![bhaskar.anupam92](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bhaskar.anupam92](https://community.auth0.com/u/bhaskar.anupam92)\
**Post date:** [April 8, 2017, 3:34am UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125/3 "2017-04-08T03:34:34Z")

</div>

I am not using lock widget. I am using custom login and api calls to perform authentication. I found the solution for my problem. Below links will help others who are having similar problem.

1. This api call will return a link in the response to set up guardian.  
[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Guardian/post_ticket)

2. This api call will return mfa token which is used to send code to the device  
[Authentication API Explorer](https://auth0.com/docs/api/authentication#resource-owner-password-and-mfa)

3. This api call will take the code sent to the device and authenticates  
[Authentication API Explorer](https://auth0.com/docs/api/authentication#resource-owner-password-and-mfa) (Verify MFA using OTP)

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luke/32/11039_2.png) [@luke](https://community.auth0.com/u/luke)\
**Post date:** [February 14, 2018, 10:57pm UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125/4 "2018-02-14T22:57:40Z")

</div>

Hey, thanks for sharing this. Were you able to imitate the initial device setup through APIs? I couldn’t find any public API for enrolling a device.

---

<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:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/multifactor-authentication-for-custom-login-and-custom-signup/6125/5 "2018-03-02T05:53:07Z")

</div>


