Skip to content

Commit

Permalink
Merge pull request #1079 from DSD-DBS/fix-oauth-issue
Browse files Browse the repository at this point in the history
fix: Change `id_token` to `access_token` for oauth
  • Loading branch information
MoritzWeber0 authored Oct 9, 2023
2 parents 2f887e4 + fd33d76 commit 1c29032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def api_get_token(
body: TokenRequest, db: orm.Session = fastapi.Depends(database.get_db)
):
token = get_token(body.code)
access_token = token["id_token"]
access_token = token["access_token"]

validated_token = JWTBearer().validate_token(access_token)
assert validated_token
Expand Down

0 comments on commit 1c29032

Please sign in to comment.