mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
fix jwt re-polling bug
This commit is contained in:
1 parent
0b98f7cf71
commit
2145e7d458
1 file changed
+2
-2
+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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user