Open Haksiu opened 3 years ago
From what I can see from what it looked to be from what I can see in the console as I am getting the same error
It looks to the database that the user data is being saved to
Probably issue is with your strategy file. Re-clone it and try
@Haksiu This workes for me
const DiscordStragegy = require("passport-discord").Strategy
const passport = require("passport")
passport.serializeUser(function(user, done) {
done(null, user);
});
passport.deserializeUser(function(user, done) {
done(null, user);
});
passport.use(new DiscordStragegy({
clientID: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
callbackURL: process.env.CLIENT_REDIRECT,
scope: ["identify", "guilds"]
}, (accessToken, refreshToken, profile, done) => {
done(null, profile)
}))
Hey, I have a redirect problem. Error: