Skip to content

Commit

Permalink
fix github callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji committed Mar 25, 2024
1 parent 7a7acc3 commit b1b9317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/src/portr_admin/apis/v1/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ async def is_first_signup():
@api.get("/github")
async def github_login(request: Request):
state = generate_oauth_state()
redirect_uri = f"{settings.domain_address()}{GITHUB_CALLBACK_URL}?state={state}"

redirect_uri = f"{settings.domain_address()}{GITHUB_CALLBACK_URL}"
client = GithubOauth(
client_id=settings.github_client_id,
client_secret=settings.github_client_secret,
Expand Down

0 comments on commit b1b9317

Please sign in to comment.