huskies: merge 927

This commit is contained in:
dave
2026-05-12 17:55:12 +00:00
parent b8945654bf
commit 03a99b3cf1
33 changed files with 119 additions and 25 deletions
+5 -4
View File
@@ -109,10 +109,11 @@ pub(super) fn save_credentials(
// Build the pool key: prefer email, fall back to token prefix.
let key = if email.is_empty() {
format!(
"account-{}",
&token.access_token[..token.access_token.len().min(16)]
)
let prefix = token
.access_token
.get(..token.access_token.len().min(16))
.unwrap_or(&token.access_token);
format!("account-{prefix}")
} else {
email.to_string()
};