I try to make a login in phonegap build, but I have problems with the library auth0-cordova.
I make a “npm install @ auth0 / cordova”
I copy the files from that library to the app.
I add them to the index.html of the app
I make a
var Auth0Cordova = require ('@ auth0 / cordova');
function main () {
function handlerUrl (url) {
Auth0Cordova.onRedirectUri (url);
}
window.handleOpenURL = handlerUrl;
// init your application
}
document.addEventListener ('deviceready', main);
But it says “require is not defined” when testing it on a real device