Skip to content

Commit

Permalink
Only attempt to retrieve the initial token if this was a force check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh5 committed Feb 27, 2024
1 parent 61e2ea5 commit a58a688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmanic/libs/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def auth_user_account(self, force_checkin=False):
return
# Start by verifying the token
token_verified = self.verify_token()
if not token_verified:
if not token_verified and force_checkin:
# Try to fetch token if this was the initial login
post_data = {"uuid": self.get_installation_uuid()}
response, status_code = self.api_post('support-auth-api', 1, 'app_auth/retrieve_app_token', post_data)
Expand Down

0 comments on commit a58a688

Please sign in to comment.