Created
February 2, 2019 17:32
-
-
Save ricardochaves/9da41147968026a67cd39c72cc79ff1c to your computer and use it in GitHub Desktop.
This file contains 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
@app.route("/privateurl") | |
def privateurl(): | |
if "access_token" not in flask.session: | |
return flask.redirect(flask.url_for("login")) | |
token = flask.session.get("access_token") | |
logging.info(f"Token: {token}") | |
return jsonify({"token": token}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment