We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bd4678 commit c3190caCopy full SHA for c3190ca
1 file changed
app/bss/adapters/portaswitch/adapter.py
@@ -301,9 +301,10 @@ def refresh_session(self, refresh_token: str) -> SessionInfo:
301
"""
302
try:
303
304
- if self._settings.ENABLE_ON_DEMAND_SESSION_MIGRATION:
+ if self._settings.ENABLE_ON_DEMAND_SESSION_MIGRATION and refresh_token.isdigit():
305
# On-demand session migration is enabled. We need to emulate account login to get a new access token
306
i_account = self._hash_dictionary.get(refresh_token, refresh_token)
307
+ logging.info(f"On-demand session migration is enabled. Trying to emulate {i_account} account login")
308
session_data = self._emulate_account_login(str(i_account))
309
else:
310
session_data = self._account_api.refresh(refresh_token)
0 commit comments