Rename expiration to expiresAt
This commit is contained in:
parent
6879012cf5
commit
803abfc015
8 changed files with 22 additions and 3 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -15,5 +15,5 @@ pub struct AuthLoginTokenData {
|
|||
pub token: String,
|
||||
|
||||
#[serde(serialize_with = "humantime_serde::serialize")]
|
||||
pub expiration: SystemTime,
|
||||
pub expires_at: SystemTime,
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
package ing.bikeshedengineer.debtpirate.http
|
||||
|
||||
data class ApiResponse()
|
|
@ -0,0 +1,4 @@
|
|||
package ing.bikeshedengineer.debtpirate.http
|
||||
|
||||
class HttpClientService {
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
package ing.bikeshedengineer.debtpirate.repositories.auth
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package ing.bikeshedengineer.debtpirate.repositories.auth
|
||||
|
||||
class AuthRepository {
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package ing.bikeshedengineer.debtpirate.repositories.auth.models
|
||||
|
||||
data class AuthLoginRequest()
|
|
@ -0,0 +1,3 @@
|
|||
package ing.bikeshedengineer.debtpirate.repositories.auth.models
|
||||
|
||||
data class AuthLoginResponse()
|
Loading…
Add table
Reference in a new issue