huskies: merge 927
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user