If you are trying to create a local application, here is a sample of how to handle authentication over localhost with Node.js
If you need to change your app's Redirect URI, note that at this time, the app must be deleted and re-created.
What you will need
You will need the software below. The version used for this sample is shown in parentheses.