Skip to content

Commit

Permalink
Merge pull request #521 from linxuil/patch-1
Browse files Browse the repository at this point in the history
Update index.rst
  • Loading branch information
JonathanHuot committed Feb 25, 2024
2 parents cf6daab + 780413e commit 206f8e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ approximately like this:
from requests_oauthlib import OAuth2Session
from flask import Flask, request, redirect, session, url_for
from flask import Flask, request, redirect, session
from flask.json import jsonify
# This information is obtained upon registration of a new GitHub
client_id = "<your client key>"
client_secret = "<your client secret>"
authorization_base_url = 'https://github.com/login/oauth/authorize'
token_url = 'https://github.com/login/oauth/access_token'
secret_key = "<secret_key for use flask session>"
app = Flask(__name__)
app.config['SECRET_KEY'] = secret_key
@app.route("/login")
def login():
Expand Down

0 comments on commit 206f8e5

Please sign in to comment.