# \#cordova

**URL:** https://community.auth0.com/tag/cordova/10.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [@auth0/cordova with Vite](https://community.auth0.com/t/auth0-cordova-with-vite/80945)

<div class="topic-metadata">

**Author:** [@customautosys](https://community.auth0.com/u/customautosys)\
**Replies:** 5\
**Last updated:** [April 25, 2023, 9:22am UTC](https://community.auth0.com/t/auth0-cordova-with-vite/80945 "2023-04-25T09:22:31Z")

</div>

Hi, has anyone managed to get @auth0/cordova working with Vite? Currently I am stuck due to the crypto library. I have tried rollup-plugin-node-builtins, rollup-plugin-node-polyfills and rollup-plugin-polyfill-node to n…

---

## [CORS issue when testing on Android](https://community.auth0.com/t/cors-issue-when-testing-on-android/80079)

<div class="topic-metadata">

**Author:** [@worthy\_admin](https://community.auth0.com/u/worthy_admin)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 11:11am UTC](https://community.auth0.com/t/cors-issue-when-testing-on-android/80079 "2022-03-31T11:11:10Z")

</div>

Hello, I recently updated our cordova plugins, and platform for android to satisfy Google’s Play Store API level 30 requirement. As I was testing on Android I noticed that I get a CORS issue when hitting the /oauth/tok…

---

## [Can I get a long-lived refresh token for a Cordova/Ionic app using Auth0?](https://community.auth0.com/t/can-i-get-a-long-lived-refresh-token-for-a-cordova-ionic-app-using-auth0/50845)

<div class="topic-metadata">

**Author:** [@kazlauskis](https://community.auth0.com/u/kazlauskis)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 6:55pm UTC](https://community.auth0.com/t/can-i-get-a-long-lived-refresh-token-for-a-cordova-ionic-app-using-auth0/50845 "2020-11-20T18:55:14Z")

</div>

It works well when using rotating refresh tokens but the problem is that the user would potentially have to re-login every 90 days (max expiry for rotating tokens). Implementing Authorization Code Flow (PKCE) in a Cordo…

---

## [Use Auth0 for a Vue app wrapped in Cordova](https://community.auth0.com/t/use-auth0-for-a-vue-app-wrapped-in-cordova/49187)

<div class="topic-metadata">

**Author:** [@perelin](https://community.auth0.com/u/perelin)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 10:32am UTC](https://community.auth0.com/t/use-auth0-for-a-vue-app-wrapped-in-cordova/49187 "2020-09-21T10:32:53Z")

</div>

Hi all, I want to wrap my vue app in Cordova so I can cross publish to web and mobile. So far I successfully implemented Auth0 based on auth0-spa-js (GitHub - auth0-samples/auth0-vue-samples: Auth0 Integration Samples f…

---

## [Auth0 login stop working when I started using WKWebViewOnly](https://community.auth0.com/t/auth0-login-stop-working-when-i-started-using-wkwebviewonly/47284)

<div class="topic-metadata">

**Author:** [@janhala](https://community.auth0.com/u/janhala)\
**Replies:** 0\
**Last updated:** [July 31, 2020, 5:27pm UTC](https://community.auth0.com/t/auth0-login-stop-working-when-i-started-using-wkwebviewonly/47284 "2020-07-31T17:27:10Z")

</div>

Hi, as mentioned in the title, Auth0 login in my Cordova application stopped working after I started using WKWebViewOnly. I was forced to stop using UIWebView directly by Apple’s opinion. I solved this with this tutoria…

---

## [Hybrid login flow using Cordova+Auth0 Web SSO](https://community.auth0.com/t/hybrid-login-flow-using-cordova-auth0-web-sso/43596)

<div class="topic-metadata">

**Author:** [@HLR](https://community.auth0.com/u/HLR)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 5:39pm UTC](https://community.auth0.com/t/hybrid-login-flow-using-cordova-auth0-web-sso/43596 "2020-06-01T17:39:15Z")

</div>

Hello, I’m developing a Cordova app and would like to use Auth0 for SSO. But all the existing Auth0+Cordova examples for Cordova still reference inappbrowser plugin which is deprecated and now the latest Cordova version…

---

## [State token change between /authorize and /login](https://community.auth0.com/t/state-token-change-between-authorize-and-login/14330)

<div class="topic-metadata">

**Author:** [@mrpierrot](https://community.auth0.com/u/mrpierrot)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 3:34pm UTC](https://community.auth0.com/t/state-token-change-between-authorize-and-login/14330 "2018-09-18T15:34:46Z")

</div>

Hi, I try to use Passwordless with Lock and Cordova. But I have a bug with auth0-state : I log the requests on /authorize and /login and I see the “state” parameter change when the request redirect from /authorize to /…

---

## [How to implement Vue.js 2, Cordova, and Auth0?](https://community.auth0.com/t/how-to-implement-vue-js-2-cordova-and-auth0/9114)

<div class="topic-metadata">

**Author:** [@philharmonic](https://community.auth0.com/u/philharmonic)\
**Replies:** 3\
**Last updated:** [May 2, 2018, 6:01am UTC](https://community.auth0.com/t/how-to-implement-vue-js-2-cordova-and-auth0/9114 "2018-05-02T06:01:06Z")

</div>

I have successfully used the Cordova native example with Auth0 but cannot get it into my Vue.js layout accurately. I am using Framework7, Vue.js, Cordova and Auth0. Any help would be appreciated!!

---

## [Ionic/Cordova + Auth0 social connection not working](https://community.auth0.com/t/ionic-cordova-auth0-social-connection-not-working/10931)

<div class="topic-metadata">

**Author:** [@Reinhard](https://community.auth0.com/u/Reinhard)\
**Replies:** 3\
**Last updated:** [April 18, 2018, 3:02pm UTC](https://community.auth0.com/t/ionic-cordova-auth0-social-connection-not-working/10931 "2018-04-18T15:02:30Z")

</div>

Hi auth0 community! i followed the quick start tutorial as explained here, with which I could access a email-password auth0 login page when trying to log in from my ionic app. However, when switching on the Google soci…

---

## [Auth0 lock not working with cordova](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275)

<div class="topic-metadata">

**Author:** [@dcarr](https://community.auth0.com/u/dcarr)\
**Replies:** 3\
**Last updated:** [February 20, 2018, 12:43am UTC](https://community.auth0.com/t/auth0-lock-not-working-with-cordova/7275 "2018-02-20T00:43:22Z")

</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 …

---

## [Ionic 3.9.2 Access Tokens via auth0/cordova](https://community.auth0.com/t/ionic-3-9-2-access-tokens-via-auth0-cordova/9230)

<div class="topic-metadata">

**Author:** [@aec4444](https://community.auth0.com/u/aec4444)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 5:54pm UTC](https://community.auth0.com/t/ionic-3-9-2-access-tokens-via-auth0-cordova/9230 "2018-12-14T17:54:38Z")

</div>

We have an application and used the examples on the site to get refreshtoken from auth0 and login using auth0/cordova along with Ionic 3.9.2 for a native app. Now we need to retrieve access tokens for different APIs wit…

---

## [Advantages of auth0 cordova SDK compared to the old solution](https://community.auth0.com/t/advantages-of-auth0-cordova-sdk-compared-to-the-old-solution/6856)

<div class="topic-metadata">

**Author:** [@dev41](https://community.auth0.com/u/dev41)\
**Replies:** 5\
**Last updated:** [January 17, 2018, 12:02am UTC](https://community.auth0.com/t/advantages-of-auth0-cordova-sdk-compared-to-the-old-solution/6856 "2018-01-17T00:02:39Z")

</div>

I just figured out that there seems to be a new recomended way to integrate Auth0 into Ionic2+. I’m just wondering if there is any significant advantage of the new solution? I just made a quick test implementation in m…

---

## [CORS error calling passwordless from Cordova](https://community.auth0.com/t/cors-error-calling-passwordless-from-cordova/6564)

<div class="topic-metadata">

**Author:** [@fredguth](https://community.auth0.com/u/fredguth)\
**Replies:** 9\
**Last updated:** [January 9, 2018, 10:11am UTC](https://community.auth0.com/t/cors-error-calling-passwordless-from-cordova/6564 "2018-01-09T10:11:28Z")

</div>

Context: SPA Hybrid Using Cordova and WKWebview Not using Locks Passwordless login Our app works fine in the web, but the same code base is getting an auth0 error in iOS (Cordova). To prevent sending a null origin, we…

---

## [Double-encoded redirect uri on IOS](https://community.auth0.com/t/double-encoded-redirect-uri-on-ios/8906)

<div class="topic-metadata">

**Author:** [@kiosk.inner](https://community.auth0.com/u/kiosk.inner)\
**Replies:** 8\
**Last updated:** [December 11, 2017, 10:32pm UTC](https://community.auth0.com/t/double-encoded-redirect-uri-on-ios/8906 "2017-12-11T22:32:40Z")

</div>

In my application, I use auth0-Cordova. It was working fine until 04 of December. From that time we can’t ‘sign in’ in the application on IOS because of the wrong URI. So, I get 400 error "date": "2017-12-05T15:58:02.7…

---

## [Getting 401 Cross origin login not allowed when trying to authenticate in Cordova hybrid iOS app](https://community.auth0.com/t/getting-401-cross-origin-login-not-allowed-when-trying-to-authenticate-in-cordova-hybrid-ios-app/8181)

<div class="topic-metadata">

**Author:** [@daniel4](https://community.auth0.com/u/daniel4)\
**Replies:** 2\
**Last updated:** [November 19, 2017, 12:55pm UTC](https://community.auth0.com/t/getting-401-cross-origin-login-not-allowed-when-trying-to-authenticate-in-cordova-hybrid-ios-app/8181 "2017-11-19T12:55:03Z")

</div>

I am trying to integrate auth0 to my Cordova hybrid iOS app, trying to run it in simulator. I am using the angular-auth0 thin wrapper from here (GitHub - auth0/angular-auth0: Angular 1.x Wrapper for Auth0.js v9 and high…

---

## [Difficulties in implementing Lock in Phonegap Cordova](https://community.auth0.com/t/difficulties-in-implementing-lock-in-phonegap-cordova/8695)

<div class="topic-metadata">

**Author:** [@contas](https://community.auth0.com/u/contas)\
**Replies:** 1\
**Last updated:** [November 8, 2017, 6:11pm UTC](https://community.auth0.com/t/difficulties-in-implementing-lock-in-phonegap-cordova/8695 "2017-11-08T18:11:34Z")

</div>

Our mobile app is built on Angular 1.x.x in Phonegap Cordova, and we are facing a couple of difficulties in implementing Lock. Google Social connection is blocking webview Oauth requests. Implementing Persistent author…

---

## [Using Auth0 with ngx-rocket (angular4/ionic3)](https://community.auth0.com/t/using-auth0-with-ngx-rocket-angular4-ionic3/8662)

<div class="topic-metadata">

**Author:** [@busdev](https://community.auth0.com/u/busdev)\
**Replies:** 0\
**Last updated:** [November 3, 2017, 10:41am UTC](https://community.auth0.com/t/using-auth0-with-ngx-rocket-angular4-ionic3/8662 "2017-11-03T10:41:36Z")

</div>

Good day all. Apologies for the rushed post … I am trying to implement Auth0 (https://auth0.com/docs/quickstart/native/ionic2) on a project initiated/generated using ngx-rocket (ngX-Rocket · GitHub). After numerous atte…

---

## [Is cordova-auth the only option for a hybrid spa angularjs web and ngcordova native app?](https://community.auth0.com/t/is-cordova-auth-the-only-option-for-a-hybrid-spa-angularjs-web-and-ngcordova-native-app/7701)

<div class="topic-metadata">

**Author:** [@darrend](https://community.auth0.com/u/darrend)\
**Replies:** 2\
**Last updated:** [August 1, 2017, 9:31pm UTC](https://community.auth0.com/t/is-cordova-auth-the-only-option-for-a-hybrid-spa-angularjs-web-and-ngcordova-native-app/7701 "2017-08-01T21:31:01Z")

</div>

I’m attempting to integrate Auth0 with a 2014-era webstack application that’s also repackaged through Cordova as a native application, with the help of ngCordova to get it all running. The web client stack is an AngularJ…

---

## [Auth0-cordova won't login on iOS with WKWebView/Ionic](https://community.auth0.com/t/auth0-cordova-wont-login-on-ios-with-wkwebview-ionic/8377)

<div class="topic-metadata">

**Author:** [@saschwarz](https://community.auth0.com/u/saschwarz)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 3:55pm UTC](https://community.auth0.com/t/auth0-cordova-wont-login-on-ios-with-wkwebview-ionic/8377 "2017-10-18T15:55:16Z")

</div>

WKWebView is the preferred cordova plugin for use in Cordova and Ionic hybrid applications on iOS. But Auth0’s recommended solution for cordova/hybrid applications, auth0-cordova, doesn’t work WKWebView. This ticket was …

---

## [Cordova Javascript App Login Stuck During Social Login](https://community.auth0.com/t/cordova-javascript-app-login-stuck-during-social-login/8496)

<div class="topic-metadata">

**Author:** [@buggieapp](https://community.auth0.com/u/buggieapp)\
**Replies:** 0\
**Last updated:** [October 17, 2017, 12:03pm UTC](https://community.auth0.com/t/cordova-javascript-app-login-stuck-during-social-login/8496 "2017-10-17T12:03:58Z")

</div>

When running on my android device the login operation gets stuck during the action and will not issue out an error or redirect. The login and redirect works fine when running on the desktop phonegap server. Here is an i…

---

## [Not able to do a callback to a php file on the server using auth0 cordova](https://community.auth0.com/t/not-able-to-do-a-callback-to-a-php-file-on-the-server-using-auth0-cordova/8386)

<div class="topic-metadata">

**Author:** [@sanim.shakya](https://community.auth0.com/u/sanim.shakya)\
**Replies:** 0\
**Last updated:** [October 4, 2017, 4:58pm UTC](https://community.auth0.com/t/not-able-to-do-a-callback-to-a-php-file-on-the-server-using-auth0-cordova/8386 "2017-10-04T16:58:46Z")

</div>

I am developing a hybrid app using cordova. The authentication is done using third party called Auth0. For the web i can easily use the call back to redirect after login, but in the android i cannot redirect to a php fil…

---

## [Auth0/cordova npm package is no longer registered](https://community.auth0.com/t/auth0-cordova-npm-package-is-no-longer-registered/7979)

<div class="topic-metadata">

**Author:** [@dave2](https://community.auth0.com/u/dave2)\
**Replies:** 1\
**Last updated:** [August 28, 2017, 5:20pm UTC](https://community.auth0.com/t/auth0-cordova-npm-package-is-no-longer-registered/7979 "2017-08-28T17:20:26Z")

</div>

Your @auth0/cordova npm package is no longer registered and cannot be installed using npm. This was working as of a week ago. npm install @auth0/cordova fails. https://registry.npmjs.org/auth0/cordova/0.2.0 - 404 npm…

---

## [Switch/Open native view on top of hybrid webview in iOS](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545)

<div class="topic-metadata">

**Author:** [@ajay.verma1953](https://community.auth0.com/u/ajay.verma1953)\
**Replies:** 1\
**Last updated:** [July 17, 2017, 9:43pm UTC](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545 "2017-07-17T21:43:35Z")

</div>

I’ve created a sample of cordova app and downloaded native tokbox sample app. I’ve carefully integrated the native tokbox sample in cordova app. As both these samples are separate so they work one at a time. In “AppDele…

---

## [Ionic 2+ authentication without using auth0-cordova](https://community.auth0.com/t/ionic-2-authentication-without-using-auth0-cordova/7422)

<div class="topic-metadata">

**Author:** [@dev41](https://community.auth0.com/u/dev41)\
**Replies:** 3\
**Last updated:** [July 14, 2017, 3:57pm UTC](https://community.auth0.com/t/ionic-2-authentication-without-using-auth0-cordova/7422 "2017-07-14T15:57:34Z")

</div>

I would like to create a custom-login form for my Ionic 2+ application. Currently the only recommended way to do that is the use of the auth0 cordova library. I have to admit, that I’m not at all fan of this solution: …

---

## [Auth0 Cordova Plugin: Android Issue](https://community.auth0.com/t/auth0-cordova-plugin-android-issue/7066)

<div class="topic-metadata">

**Author:** [@brianra](https://community.auth0.com/u/brianra)\
**Replies:** 5\
**Last updated:** [July 5, 2017, 8:37pm UTC](https://community.auth0.com/t/auth0-cordova-plugin-android-issue/7066 "2017-07-05T20:37:57Z")

</div>

There is an issue on the Auth0 Cordova plugin where a user on an Android device cannot cancel their login, and then go back and try again. This is documented in Issue #44 and Issue #33. Can someone give a status for th…

---

## [Should refreshing tokens also return a new refresh token?](https://community.auth0.com/t/should-refreshing-tokens-also-return-a-new-refresh-token/6972)

<div class="topic-metadata">

**Author:** [@sebastian.dumbs](https://community.auth0.com/u/sebastian.dumbs)\
**Replies:** 3\
**Last updated:** [June 8, 2017, 5:13pm UTC](https://community.auth0.com/t/should-refreshing-tokens-also-return-a-new-refresh-token/6972 "2017-06-08T17:13:19Z")

</div>

I am having problems when working with refresh tokens on Cordova/Ionic2+ I implemented the login according to the ionic2+ quickstart and tried using my refresh token by making a request to /oauth/token according to Refr…

---

## [Auth0 Cordova - Refresh Tokens](https://community.auth0.com/t/auth0-cordova-refresh-tokens/6927)

<div class="topic-metadata">

**Author:** [@brianra](https://community.auth0.com/u/brianra)\
**Replies:** 2\
**Last updated:** [June 7, 2017, 11:31pm UTC](https://community.auth0.com/t/auth0-cordova-refresh-tokens/6927 "2017-06-07T23:31:26Z")

</div>

I’m using the Auth0 Cordova project to implement PKCE auth. The quickstarts for this are very helpful! One thing I don’t see is a suggestion for how to implement refresh tokens (or silent auth?) with this Auth0 Cordova…

---

## [Auth0 Cordova Debugging Help](https://community.auth0.com/t/auth0-cordova-debugging-help/6920)

<div class="topic-metadata">

**Author:** [@brianra](https://community.auth0.com/u/brianra)\
**Replies:** 2\
**Last updated:** [June 6, 2017, 7:31pm UTC](https://community.auth0.com/t/auth0-cordova-debugging-help/6920 "2017-06-06T19:31:37Z")

</div>

I have an existing app and am updating it to use the latest Auth0 Cordova plugin. I’m following the latest quickstart. My app does redirect to the hosted login page, and when I log in I do hit the Auth0Cordova.onRedire…

---

## [Reloading Ionic2+ Android app Azure authentication](https://community.auth0.com/t/reloading-ionic2-android-app-azure-authentication/6814)

<div class="topic-metadata">

**Author:** [@dhameer.govind](https://community.auth0.com/u/dhameer.govind)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 7:48pm UTC](https://community.auth0.com/t/reloading-ionic2-android-app-azure-authentication/6814 "2017-06-02T19:48:26Z")

</div>

Hi there I managed to integrate the AUTH0 system into my Ionic2+ app. It works on Iphone, ios simulator and android simulator, but not on an android phone. It basically goes to the Auth0 login page. i can then login wi…
