Comments (4)
Plugins only run on cordova platforms (native builds), none of the desktop browsers will have access to them. (There is a platform "browser" in ionic, but I don't think that will be useful in your case.)
To test your "login code" on the device, you have to connect your device to the development machine and run "ionic run android/ios" command. You can also use simulator/emulator on both platforms.
For testing other features (that require login) you can store the access token in local storage on mobile and copy it to your chrome browser. Authentication flow usually first checks for the stored token and if available, user is immediately authenticated.
Or you can develop a separate authorisation flow if the app is running in a desktop browser - if you intend to put it on web also - we do it this way.
from auth0-cordova.
You'll need to installs the plugins as listed in the readme and this works for ionic 2. However, this will not work when testing in Chrome as the plugins are not available.
from auth0-cordova.
We are using this for the ionic project (v1 actually, but in v2 it would be the same), that is both a web and mobile application (ios and android). This library is used for native applications, while for the web we use auth0.js client alone.
You have to add this "strange" url to the list of allowed callback urls, and when you install the plugins, Android/iOs will know to redirect the callback back to your app.
Not sure if you are aware, there is actually an example done with Ionic v2 in this repo https://github.com/auth0/auth0-cordova/tree/master/example/ionic
from auth0-cordova.
Thank you both!
Yes i am aware of the Ionic example in this repo but i was confused which readme to use, the one on the root page of the repo or the one at the ionic example. Gregor if you use this pluggins, how do you work in dev mode if this is not working when testing in the computer browser? Or is it only on Chrome it doesnt work?
from auth0-cordova.
Related Issues (20)
- Handling errors in redirect uri HOT 1
- Capacitor support HOT 13
- onRedirectUri faulty behavior after first login HOT 8
- Module not found: Error: Can't resolve 'crypto' in 'C://mypc/path/node_module/@auth0\cordova\src' HOT 1
- Angular support HOT 4
- Login screen hangs after entering credentials HOT 9
- Refresh tokens HOT 6
- iOS social provider signout problem HOT 3
- Custom Webpack is not used when using livereload on cordova run HOT 6
- Sign in with Apple - error on callback HOT 22
- Universal and Deep link support for iOS and Android HOT 3
- Use ASWebAuthenticationSessionManager with cordova HOT 4
- New Version Release HOT 1
- Cannot read properties of undefined (reading 'open') HOT 1
- net: ERR_UNKNOWN_URL_SCHEME with targetSdkVersion 30 HOT 11
- loading icon keeps spinning after social sign in using ionic V3 app on Android
- Could not load module crypto HOT 3
- New Release? HOT 1
- Login with Google is not asking the account to use HOT 2
- SafariViewController Closes before user can save or update password HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-cordova.