Add auth service client and auth state fields

This commit is contained in:
filipriec
2025-03-30 21:44:45 +02:00
parent e19b30f4f4
commit 2ed2419f9e
2 changed files with 19 additions and 0 deletions

View File

@@ -9,6 +9,9 @@ pub struct AuthState {
pub error_message: Option<String>,
pub current_field: usize,
pub current_cursor_pos: usize,
pub auth_token: Option<String>,
pub user_id: Option<String>,
pub role: Option<String>,
}
impl AuthState {
@@ -20,6 +23,9 @@ impl AuthState {
error_message: None,
current_field: 0,
current_cursor_pos: 0,
auth_token: None,
user_id: None,
role: None,
}
}
}