# Login attempt failed! Reason: Failed due to unknown reason

**URL:** <https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129>\
**Category:** Ionic\
**Created:** [September 14, 2020, 9:29am UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129 "2020-09-14T09:29:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnasahudev](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@krishnasahudev](https://devforum.zoom.us/u/krishnasahudev)\
**Post date:** [September 14, 2020, 9:29am UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/1 "2020-09-14T09:29:56Z")

</div>

**Description**  
Getting below error while authenticating user using ionic sdk’s login method.  
`result":false,"message":"Login attempt failed! Reason: Failed due to unknown reason`

**2FA** - Enabled

**Authentication type** - JWT

**Which version?**  
ionic-native/zoom: ^5.26.0  
cordova.plugin.zoom: ^4.6.2166-6.603

**To Reproduce**  
Steps to reproduce the behavior:

1. Create an ionic project.
2. Install zoom’s npm and Cordova package
3. Add JWT authentication method
4. Sign in using login method(Library method) from zoom service.
5. Check the error thrown from the login method

**Method used** -

```auto
this.zoomService.login(userName, password)
  .then((success: any) => console.log(success))
  .catch((error: any) => console.log(error));

```

**Smartphone :**

- Moto G6

**Additional context**  
If 2FA is disabled, then login works as expected.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 15, 2020, 5:30pm UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/2 "2020-09-15T17:30:16Z")

</div>

Hey @krishnasahudev

Thanks for using the dev forum!

What 2FA did you use?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![krishnasahudev](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@krishnasahudev](https://devforum.zoom.us/u/krishnasahudev)\
**Post date:** [September 16, 2020, 4:33pm UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/3 "2020-09-16T16:33:01Z")

</div>

Hey @Michael_Condon

I have used SMS as 2FA

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 18, 2020, 5:54pm UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/4 "2020-09-18T17:54:05Z")

</div>

Hey @krishnasahudev

I don’t think the 2FA should impact the SDK’s behavior directly since it is not a part of the SDK. Is it possible the 2FA is not working correctly?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![krishnasahudev](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@krishnasahudev](https://devforum.zoom.us/u/krishnasahudev)\
**Post date:** [September 19, 2020, 8:14am UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/5 "2020-09-19T08:14:52Z")

</div>

I do not know about this @Michael_Condon.  
And there is not documentation on [zoom ionic sdk](https://github.com/zoom/zoom-sdk-ionic) page to incorporate 2FA authentication type in the app.

Is it reproducible on your end as well?

I need some resolution for the users who have enabled 2FA.  
Let me know what i can do to enable 2FA verification in ionic app.

---

<div class="post-metadata">

**Author:** ![krishnasahudev](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@krishnasahudev](https://devforum.zoom.us/u/krishnasahudev)\
**Post date:** [September 26, 2020, 2:21pm UTC](https://devforum.zoom.us/t/login-attempt-failed-reason-failed-due-to-unknown-reason/30129/6 "2020-09-26T14:21:52Z")

</div>

Any updates on this?
