Rename expiration to expiresAt

This commit is contained in:
Z. Charles Dziura 2024-10-09 09:50:56 -04:00
parent 6879012cf5
commit 803abfc015
8 changed files with 22 additions and 3 deletions

View file

@ -59,11 +59,11 @@ async fn auth_login_request(
user_id,
session: AuthLoginTokenData {
token: session_token,
expiration: session_token_expiration,
expires_at: session_token_expiration,
},
auth: AuthLoginTokenData {
token: auth_token,
expiration: auth_token_expiration,
expires_at: auth_token_expiration,
},
};

View file

@ -15,5 +15,5 @@ pub struct AuthLoginTokenData {
pub token: String,
#[serde(serialize_with = "humantime_serde::serialize")]
pub expiration: SystemTime,
pub expires_at: SystemTime,
}

View file

@ -0,0 +1,3 @@
package ing.bikeshedengineer.debtpirate.http
data class ApiResponse()

View file

@ -0,0 +1,4 @@
package ing.bikeshedengineer.debtpirate.http
class HttpClientService {
}

View file

@ -0,0 +1,2 @@
package ing.bikeshedengineer.debtpirate.repositories.auth

View file

@ -0,0 +1,4 @@
package ing.bikeshedengineer.debtpirate.repositories.auth
class AuthRepository {
}

View file

@ -0,0 +1,3 @@
package ing.bikeshedengineer.debtpirate.repositories.auth.models
data class AuthLoginRequest()

View file

@ -0,0 +1,3 @@
package ing.bikeshedengineer.debtpirate.repositories.auth.models
data class AuthLoginResponse()