# Auth0 lock not working with cordova

**URL:** <https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275>\
**Category:** Get Help\
**Tags:** lock-10, vuejs, cordova, authentication\
**Created:** [June 27, 2017, 4:02am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275 "2017-06-27T04:02:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcarr](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dcarr](https://community.auth0.com/u/dcarr)\
**Post date:** [June 27, 2017, 4:02am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275/1 "2017-06-27T04:02:07Z")

</div>

I am building a mobile app using vue js, cordova and auth0 lock. I have followed the quickstart guide for cordova adding inAppBrowser plugin and followed the quickstart guide for vue js. The application works just fine whenever I use npm run dev to run it on my browser. However whenever I deploy it to my device and enter the log in info and press log in an error pops up at the top saying “WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO LOG IN.” Any help would be appreciated I have tried many different solutions that don’t seem to work.

---

<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:** [July 14, 2017, 8:38pm UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275/2 "2017-07-14T20:38:02Z")

</div>

The Cordova quickstart may not be up to date as using Lock within an InAppBrowser window is not recommended; the recommended approach would be to make use of `auth0-cordova` [library](https://github.com/auth0/auth0-cordova) and implement a PKCE flow that authenticates users through the hosted login page.

The currently available Ionic2 [quickstart](https://auth0.com/docs/quickstart/native/ionic2) makes use of that library so even though some of it will be Ionic2 specific you may want to use it as a reference as at least the parts about setting up the use of the `auth0-cordova` library may be reusable.

---

<div class="post-metadata">

**Author:** ![Ryan\_Chenkie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryan_chenkie/32/5854_2.png) [@Ryan\_Chenkie](https://community.auth0.com/u/Ryan_Chenkie)\
**Post date:** [July 15, 2017, 1:50am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275/3 "2017-07-15T01:50:43Z")

</div>

The Cordova [quickstart](https://auth0.com/docs/quickstart/native/cordova) has since been updated.

---

<div class="post-metadata">

**Author:** ![wilson.foo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wilson.foo/32/34568_2.png) [@wilson.foo](https://community.auth0.com/u/wilson.foo)\
**Post date:** [February 20, 2018, 12:43am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275/4 "2018-02-20T00:43:22Z")

</div>

Is lock still not working with Cordova? I would prefer a more integrated experience than InAppBrowser.

---

<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:54am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275/5 "2018-03-02T05:54:59Z")

</div>


