Auth0 Home Blog Docs

Single Page - Javascript - Phonegap Build - Redirect uri

Hello to everyone,

I am trying to implement Auth0 login as Single Page app quickstart guides. My app is in Javascript which I want to convert to hybrid app with Phonegap Build. The Quickstart guide sets that redirectUri parameter must be window.location.href but I can’t enter this value in Allowed Callback URLs in the Application settings since it is not a valid uri. I can’t enter file:// url location of my page to redirect since it produces an error (it’s not http or https).

What is the proper way to set redirectUri for a Single Page app written in Javascript and build into a mobile application with Phonegap Build?

I would appreciate anyone’s advice on the matter.