Add auth service client and auth state fields
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user