Skip to content

Commit

Permalink
bugfix: fix refresh token asynchronous issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujan167 committed Dec 24, 2024
1 parent 66f0433 commit bd9dd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/auth/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def refresh_token(request: Request, response: Response):
raise HTTPException(status_code=401, detail="Refresh token missing")

try:
new_access_token, expires_in = refresh_access_token(refresh_token)
new_access_token, expires_in = await refresh_access_token(refresh_token)
# Update the access token cookie
response.set_cookie(
key="access_token",
Expand Down

0 comments on commit bd9dd7f

Please sign in to comment.