oauth-everything / passport-discord

A Passport strategy for authenticating with https://discordapp.com/
Mozilla Public License 2.0
20 stars 4 forks source link

Always getting auth redirected to failure callback URL instead of success redirect #7

Open vickylance opened 3 years ago

vickylance commented 3 years ago

Not sure if something changed in the discord oauth strategy but after clicking on the authorize button its getting redirected to failureRedirect.

This is what I sent in callbackURL = http://localhost:3000/api/v1/auth/redirect And its the same I set in discord redirect URL

nodgear commented 3 years ago

Put profile as second argument on your callback, being the first one null.

Tschrock commented 3 years ago

I'm not exactly sure what your code is doing, but I've added a working example to the repo that you can look at to hopefully figure out what is happening.