Skip to content
← Back to Community
Login with Discord Template
Profile icon
ssebastianoo

A Python Flask app that makes people login with Discord using OAUTH2 lib.

Voters
Profile icon
Foxelou
Profile icon
DJTiger
Profile icon
EmranMasood
Profile icon
Herobrinelgg
Profile icon
gavinwinsagain
Profile icon
rediar
Profile icon
AgastyaSandhuja
Profile icon
frissyn
Profile icon
ssebastianoo
Comments
hotnewtop
Profile icon
hg0428

This post is. blank

Profile icon
gavinwinsagain

Noice

Profile icon
gavinwinsagain

How do I set this up when I remix it doesn’t work?

Profile icon
ssebastianoo

@gavinwinsagain line 8 change base_url and create a .env with OAUTH2_CLIENT_ID = your_client_id and OAUTH2_CLIENT_SECRET = your_client_secret

^ take them from the Discord dev portal

Profile icon
gavinwinsagain
Profile icon
gavinwinsagain

So when I did this now it says “invalid 0AUTH2” redirect @ssebastianoo

Profile icon
AgastyaSandhuja

cool! How would i get the profile picture?

Profile icon
ssebastianoo

hello, go on /me and you can find your avatar in Bytes @AgastyaSandhuja. You can get it with user["avatar"]

Profile icon
AgastyaSandhuja