I am trying to integrate Auth0 authentication with my already made cordova mobile app. I set up the client and was following the quick start guide from auth0. The problem I am facing is that the guide does not seem to be suitable for a jQuery app because it uses require and in the end builds a module. I am not sure how to do this using jQuery, since all other js files I have are inside www/js
folder and I do not know how to import node_modules
inside my app.
var Auth0 = require('auth0-js');
var Auth0Cordova = require('@auth0/cordova');
....
....
module.exports = App;
- Can anyone tell me how can I do this without making much modification to my current app.
- If not possible to set this up with jQuery, what other ways are there to do this?