displaying username and username contained in the jwt now

This commit is contained in:
filipriec
2025-04-13 14:04:30 +02:00
parent e856e9d6c7
commit 5b1db01fe6
5 changed files with 8 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ pub struct AuthState {
pub auth_token: Option<String>,
pub user_id: Option<String>,
pub role: Option<String>,
pub decoded_username: Option<String>,
pub has_unsaved_changes: bool,
}
@@ -55,6 +56,7 @@ impl AuthState {
user_id: None,
role: None,
has_unsaved_changes: false,
decoded_username: None,
}
}
}