Skip to content

Commit

Permalink
fix refreshes on QR code logins
Browse files Browse the repository at this point in the history
The next login will be with a token, so we must change the login mode.

closes #308
  • Loading branch information
bain3 committed Sep 17, 2024
1 parent 7c4735d commit d0d12c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pronotepy/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def qrcode_login(
client_identifier=client_identifier,
device_name=device_name,
)
client.login_mode = "token" # for subsequent refreshes

if not skip_2fa:
# check if the account has 2FA enabled
Expand Down

0 comments on commit d0d12c1

Please sign in to comment.