feat: refresh token

This commit is contained in:
2026-08-29 12:58:34 +02:00
parent ec1bbf729f
commit a9194fa66c
22 changed files with 537 additions and 15 deletions

View File

@@ -14,6 +14,16 @@ pub struct RegisterRequest {
pub password: String,
}
#[derive(Debug, Deserialize, utoipa::ToSchema)]
pub struct RefreshRequest {
pub refresh_token: String,
}
#[derive(Debug, Deserialize, utoipa::ToSchema)]
pub struct LogoutRequest {
pub refresh_token: String,
}
#[derive(Debug, Serialize, utoipa::ToSchema)]
pub struct UserResponse {
pub id: Uuid,
@@ -26,4 +36,5 @@ pub struct UserResponse {
pub struct AuthResponse {
pub user: UserResponse,
pub access_token: String,
pub refresh_token: String,
}