Skip to content

Commit

Permalink
Fixed token refresh bug
Browse files Browse the repository at this point in the history
Signed-off-by: Abelardo Pardo <[email protected]>
  • Loading branch information
abelardopardo committed Dec 6, 2023
1 parent 7b1bfaa commit ab3dec3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ontask/oauth/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ def refresh_token(
user_token.access_token = response_data['access_token']
user_token.valid_until = timezone.now() + timedelta(
seconds=response_data.get('expires_in', 0))
user_token.refresh_token = response_data.get('refresh_token'),

user_token.save(update_fields=[
'access_token', 'valid_until', 'refresh_token'])
user_token.save(update_fields=['access_token', 'valid_until'])

return user_token

Expand Down

0 comments on commit ab3dec3

Please sign in to comment.