Hello,
I followed this tutorial https://auth0.com/docs/quickstart/native/ionic3/01-login to get a nice login popup. it work well but now i want to implement refresh token. Sadly i didnt found any relevant example and I’m struggling to implement it.
I have a method doing :
And then I got Uncaught (in promise): TypeError: Cannot read property 'protocol' of null . The provided redirectUri is from the former tutorial, it’s working for login.
Object {original: Object, code: “origin_mismatch”, description: “The redirectUri’s origin (http://foo.bar) should match the window’s origin (file://).”, error: “origin_mismatch”, error_description: “The redirectUri’s origin (http://foo.bar) should match the window’s origin (file://).”}
When I use the redirect_uri file:// i’ve got : https://dev-app.eu.auth0.com/authorize?client_id=V3KIiCr..=none&auth0Client=eyJuYW1In0%3D 403 () Object {original: Object, code: "timeout", description: "Timeout during executing web_message communication", error: "timeout", error_description: "Timeout during executing web_message communication"}
And the CURL request :
Callback URL mismatch.
The provided redirect_uri is not in the list of allowed callback URLs.
Please go to the [Application Settings page](https://manage.auth0.com/#/applications/V3KIiCr.../settings) and make sure you are sending a valid callback url from your application.
And then, if I add file:// in the allowed callback url i’ve got :
There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us.
Please try again.