No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Auth0 for Quasar Cordova App ?

    Framework
    2
    3
    342
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Guido last edited by

      Hi, i need to add auth0 to cordova App. I’m follow the official tutorial for cordova, but my problem is that my app is build from Quasar Framework, who wrap the www folder of cordova with the src folder of the Vue/Quasar project files. So there is no proper way to reference a index.js and App.js that the tutorial refers.

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @Guido last edited by

        @Guido initiate it in a bootfile https://quasar.dev/quasar-cli/cli-documentation/boot-files#Anatomy-of-a-boot-file.

        1 Reply Last reply Reply Quote 0
        • G
          Guido last edited by

          Hi! thanks for response. I tried bootfile with no luck.

          This is the code of one of files:

          var Auth0Cordova = require(’@auth0/cordova’);
          var App = require(’./App’);

          function main() {
          var app = new App();
          function intentHandler(url) {
          Auth0Cordova.onRedirectUri(url);
          }
          window.handleOpenURL = intentHandler;
          app.run(’#app’);
          }
          document.addEventListener(‘deviceready’, main);

          And the errors of console:
          [Quasar] boot error: TypeError: Cannot read property ‘bind’ of undefined
          Failed to load resource: net::ERR_CONNECTION_REFUSED
          [WDS] Disconnected!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post