After you deployed in heroke you should put your Public address instead of localhost into the redirect url.