This shows how to use html5mode with Auth0-angular.
There's a bug with ngRoute, so the response with the accessToken which is http://yoururl.com/#id_token gets rewritten and the hash is removed: http://yoururl.com/id_token, so we need to implement a work around for this.
In order to fix that, we need to do 2 things:
- Add
$locationProvider.hashPrefix('!')to your config. This will makengRoutenot rewrite the URLs. Check it here - Add
auth.hookEvents()to the run of your app, so that all events thatauthservice is listening are run on startup. Check here
Just download node and run:
npm install
node server.js