# Auth0 with Capacitor and Ionic 5

**URL:** <https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096>\
**Category:** Get Help\
**Created:** [October 6, 2020, 10:18am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096 "2020-10-06T10:18:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaztats](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chaztats](https://community.auth0.com/u/chaztats)\
**Post date:** [October 6, 2020, 10:18am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/1 "2020-10-06T10:18:45Z")

</div>

Hi All,

My first post here and a particularly tricky one from what I can figure out.

Basically I have a new Ionic 5 app, using the auth0/auth0-angular library in order to perform authorisation,  
Now this works absolutely fine on web.  
The issue comes on mobile build of the ionic app.  
We are using Capacitor to do this.  
The app loads, opens safari displaying the login page. It is important to point out here that this is the safari app itself, not an in-app browser.  
I successfully login and I am presented with the popup (Open in _AppName_)  
I click Open and am directed back to the application.  
At this point however my app just freezes on a black screen.  
The callback and redirect don’t seem to happen at all.  
My iOS logs just say APP ACTIVE.

Been at a loss for about a week now.  
Any help or bright ideas would be wonderful.

Thanks

---

<div class="post-metadata">

**Author:** ![donovanrogall](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donovanrogall/32/27032_2.png) [@donovanrogall](https://community.auth0.com/u/donovanrogall)\
**Post date:** [January 21, 2021, 4:10am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/2 "2021-01-21T04:10:48Z")

</div>

Hey chaztats, did you ever find a solution to this problem? I am having the same issue and the only documentation I can seem to find is related to Cordova and not Capacitor.

I would love to hear if you figured something out.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![chaztats](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chaztats](https://community.auth0.com/u/chaztats)\
**Post date:** [January 21, 2021, 4:25am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/3 "2021-01-21T04:25:35Z")

</div>

Hey I forgot I also posted it on here.  
I posted a solution on the Ionic forum.

> **[Auth0 with Capacitor and Ionic 5](https://forum.ionicframework.com/t/auth0-with-capacitor-and-ionic-5/197484/2)**
>
> I am facing the same issue, did you manage to solve it?

Feel free to message me if you get stuck 🙂

---

<div class="post-metadata">

**Author:** ![chaztats](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chaztats](https://community.auth0.com/u/chaztats)\
**Post date:** [January 21, 2021, 10:19am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/4 "2021-01-21T10:19:03Z")

</div>

Realised I didn’t hit reply.  
Hopefully my answer above helps!

---

<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 21, 2021, 10:44am UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/5 "2021-01-21T10:44:02Z")

</div>

Thanks for sharing that with the rest of community @chaztats!

---

<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 28, 2021, 3:22pm UTC](https://community.auth0.com/t/auth0-with-capacitor-and-ionic-5/51096/6 "2021-01-28T15:22:10Z")

</div>


