Skip to content

Commit 36d6371

Browse files
update comments
1 parent 03a0ac5 commit 36d6371

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/planet_auth/auth.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ def _is_expired() -> bool:
210210
auth_logger.warning(
211211
msg=f"Failed to refresh expired credentials (Error: {str(e)}). Attempting interactive login."
212212
)
213-
# Fall through to case #4 below.
214-
# self.login(allow_open_browser=allow_open_browser, allow_tty_prompt=allow_tty_prompt)
215-
# return
216213

217214
# Case #4 above.
218215
self.login(allow_open_browser=allow_open_browser, allow_tty_prompt=allow_tty_prompt)

src/planet_auth/oidc/request_authenticator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def _refresh(self):
8484

8585
def _refresh_needed(self, check_time: Optional[int] = None) -> bool:
8686
if self._token_body is None:
87-
# Always consider no token in need of a refresh.
87+
# Always consider not having the token loaded and primed to be
88+
# in need of a refresh. In _refresh_if_needed(), this will
89+
# trigger a reload before doing a network refresh.
8890
return True
8991

9092
if self._refresh_at is None:

0 commit comments

Comments
 (0)