Simple example demonstrating how to use "Login with Discord" feature.
First update the settings in the top of the file.
Install prequisites:
pip install flask requests-oauthlib
Then run with:
python discord_oauth_login_server.py
Example Flask app showing how to use "Login with Discord" feature
Python