Minor changes

This commit is contained in:
Andras Schmelczer 2025-03-25 22:26:57 +00:00
commit b48af7e211
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,9 +1,10 @@
use super::app_state::AppState;
use crate::{
app_state::AppState,
config::user_config::User,
errors::{SyncServerError, unauthorized_error},
};
// TODO: turn this into a middleware
pub fn auth(app_state: &AppState, token: &str) -> Result<User, SyncServerError> {
app_state
.config