# Error while integrating Auth0 in existing Ionic Cordova App

**URL:** <https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275>\
**Category:** Get Help\
**Tags:** ionic\
**Created:** [October 13, 2021, 9:01pm UTC](https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275 "2021-10-13T21:01:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeswin1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeswin1/32/12681_2.png) [@jeswin1](https://community.auth0.com/u/jeswin1)\
**Post date:** [October 13, 2021, 9:01pm UTC](https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275/1 "2021-10-13T21:01:35Z")

</div>

I’m trying to integrate Auth0 in my existing Ionic Cordova App. I am facing an issue while adding this statement - `Auth0Cordova.onRedirectUri(url);`. Please check the PDF below for full details. Please let me know how to resolve this issue. Thanks.

[ionic-auth0-issue.pdf](https://community.auth0.com/uploads/short-url/jE4u7iuh8kqRDiXbKxPs7azxVpf.pdf) (209.6 KB)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 13, 2021, 9:53pm UTC](https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275/3 "2021-10-13T21:53:16Z")

</div>

Hi @jeswin1,

Welcome to the Auth0 Community!

I understand that you are getting Errors when integrating Auth0 into your existing app.

After taking a closer look at your attached error, it shows that your app failed to compile because of the `Module not found: Error: Can't resolve 'crypto' ` error.

I found that this is a known issue and several users have reported workarounds on Github:  
[https://github.com/auth0/auth0-cordova/issues/88](https://github.com/auth0/auth0-cordova/issues/88)

Please open a new issue in the repository if your problem persists even after trying all the suggested workarounds.

Please let me know if there is anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![jeswin1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeswin1/32/12681_2.png) [@jeswin1](https://community.auth0.com/u/jeswin1)\
**Post date:** [October 14, 2021, 2:47pm UTC](https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275/4 "2021-10-14T14:47:56Z")

</div>

Thanks. I will check the workaround.

---

<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:** [December 6, 2021, 11:03pm UTC](https://community.auth0.com/t/error-while-integrating-auth0-in-existing-ionic-cordova-app/71275/5 "2021-12-06T23:03:24Z")

</div>

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