auth0-ionic2-samples
auth0-ionic2-samples copied to clipboard
Incompatible with browser running
As widely acknowledged, the sample app won't run in browser or under ionic serve.
Obviously one of the major strengths of Ionic is the 'write once deploy anywhere concept'.
Any chance you could publish a sample app that is also compatible with browser/web running, e.g. one that switches to a non PKCE auth method when operating in browser?
We are tracking this issue currently: https://github.com/ionic-team/ionic-cli/issues/2664
In the hopes that Ionic will support more straightforward PWA deployments in the future. When this issue is resolved, we will look into adding support in the Quick Start. One primary issue is that many Cordova plugins are incompatible with the browser. The overhaul to deploy a PWA here would be more significant than switching to another auth method (and would require a non-native Auth0 client as well).
The principle of "write once, deploy anywhere", while admirable, has not yet been achieved with regards to Ionic. We're also eagerly awaiting that day. :) Until then, a blog post might be better suited to accommodate this than the documentation Quick Start. I will add it to our technical tutorial backlog.