fix jwt re-polling bug

This commit is contained in:
Brandon Thomas committed 2025-10-04 01:34:54 -04:00
1 parent 0b98f7cf71
commit 2145e7d458
1 file changed
+2 -2
@@ -43,11 +43,11 @@ pub async fn list_classic_sora_tasks_with_session_auto_renew(
}
async fn maybe_renew_session(creds: &SoraCredentialSet) -> Result<Option<SoraCredentialSet>, SoraError> {
if creds.jwt_bearer_token.is_none() {
if !creds.jwt_bearer_token.is_none() {
// TODO: Handle JWT expired case as well.
return Ok(None);
}
// TODO: Handle JWT expired case as well.
info!("JWT not set. Upgrading credentials...");
let mut updated_creds = creds.clone();