Did you change the callback URL of your app?
For my app I develop locally with judgeme.ngrok.com/login as my callback URL, while my real production app has judge.me/login as the callback URL.
So basically to develop both locally and have an app in production you will need two apps.