From 7b889e57a8389add1435d1dbdd85f88a67bb671e Mon Sep 17 00:00:00 2001 From: Momi-V <83947761+Momi-V@users.noreply.github.com> Date: Wed, 18 Feb 2026 09:55:07 +0100 Subject: [PATCH] make formatting check happy --- src/auth.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 2fd65582..1b967dc2 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -1175,9 +1175,14 @@ impl AuthTokens { } // Create refresh_token and access_token with default validity - pub fn new(device: &Device, user: &User, sub: AuthMethod, client_id: Option, existing_refresh_claims: Option<&RefreshJwtClaims>) -> Self { + pub fn new( + device: &Device, + user: &User, + sub: AuthMethod, + client_id: Option, + existing_refresh_claims: Option<&RefreshJwtClaims>, + ) -> Self { let time_now = Utc::now(); - let access_claims = LoginJwtClaims::default(device, user, &sub, client_id); let validity = if device.is_mobile() { @@ -1258,7 +1263,9 @@ pub async fn refresh_tokens( } AuthMethod::Sso => err!("SSO is now disabled, Login again using email and master password"), AuthMethod::Password if CONFIG.sso_enabled() && CONFIG.sso_only() => err!("SSO is now required, Login again"), - AuthMethod::Password => AuthTokens::new(&device, &user, refresh_claims.sub.clone(), client_id, Some(&refresh_claims)), + AuthMethod::Password => { + AuthTokens::new(&device, &user, refresh_claims.sub.clone(), client_id, Some(&refresh_claims)) + } _ => err!("Invalid auth method, cannot refresh token"), };