Skip to content

Commit b60cc4d

Browse files
was this it?
1 parent 6ef37b9 commit b60cc4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/planet_auth/oidc/request_authenticator.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def _refresh_if_needed(self):
124124
msg="Error refreshing auth token. Continuing with old auth token. Refresh error: " + str(e)
125125
)
126126

127-
if not (self._credential and self._credential.is_loaded()):
128-
# "refresh" may also be called to initialize in some cases, as in client credentials flow.
129-
# Continuing with what we have is not an option when we have nothing.
130-
raise AuthException("Failed to load or obtain a valid access token.")
127+
# if not (self._credential and self._credential.is_loaded()):
128+
# # "refresh" may also be called to initialize in some cases, as in client credentials flow.
129+
# # Continuing with what we have is not an option when we have nothing.
130+
# raise AuthException("Failed to load or obtain a valid access token.")
131131

132132
def pre_request_hook(self):
133133
self._refresh_if_needed()

0 commit comments

Comments
 (0)