Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferlinx101 committed Jun 1, 2023
1 parent 7065c14 commit 9da84ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ def login(request: LoginRequest, Authorize: AuthJWT = Depends()):

@app.get('/github-login')
def github_login():
github_client_id = "eaaf029abe1165e23c1e"
github_client_id = ""
return RedirectResponse(f'https://github.com/login/oauth/authorize?scope=user:email&client_id={github_client_id}')

@app.get('/github-auth')
def github_auth_handler(code: str = Query(...),Authorize: AuthJWT = Depends()):
print(code)
github_token_url = 'https://github.com/login/oauth/access_token'
github_client_id = "eaaf029abe1165e23c1e"
github_client_secret = "4805d8dedd2a6301ea57ebb22f06d6d80966ff53"
github_client_id = ""
github_client_secret = ""
frontend_url = "http://localhost:3000"
params = {
'client_id': github_client_id,
Expand Down

0 comments on commit 9da84ad

Please sign in to comment.