Google callback url giving back 400 when deployed in heroku Google callback url giving back 400 when deployed in heroku heroku heroku

Google callback url giving back 400 when deployed in heroku


You need to add heroku domain name and heroku callback url see working example below:

enter image description here


You could use relative paths at callbackURL (eg callbackURL: '/auth/google/callback') to make your code less depended on specific domains, and add an additional element on googleAuth, by putting a comma after callbackURL, as:

proxy: true

After this, you can use https on google's developers console for your callbacks.