Discord 0Auth2 without Passport

I’m trying to create a Discord 0auth2 login on my page with express and Node.js, but the only tutorials I can find are for passport, and I haven’t had a good experience using it and I don’t understand it a whole lot. Are there other options for Discord 0auth2?

Hey @SS4PPHIRE, you can try using this demo which uses express-session instead of passport.

https://github.com/Silentic-xyz/express-discord-oauth2

Thanks. I actually managed to get passport working, but for some reason when I refresh the page it says TokenError: Invalid “code” in request. Is there any way to fix that?