This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON 1 hr 27 mins βββββββββββββββββββββ 81.2% | |
JavaScript 20 mins βββββββββββββββββββββ 18.8% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, render_template | |
import subprocess | |
app = Flask(__name__, static_folder='web', template_folder='../web/templates') | |
@app.route("/discord/auth/callback") | |
def handle_auth_callback(): | |
# Extract the code parameter from the query parameters | |
code = request.args.get("code") |