mobile update
This commit is contained in:
@@ -18,7 +18,12 @@ use time::Duration;
|
||||
use tower_http::cors::CorsLayer;
|
||||
use axum::http::{Method, HeaderValue};
|
||||
|
||||
pub type MobileTokenStore = Arc<Mutex<HashMap<String, (i32, Instant)>>>;
|
||||
pub enum MobileStoreEntry {
|
||||
Csrf { created_at: Instant },
|
||||
AuthToken { user_id: i32, created_at: Instant },
|
||||
}
|
||||
|
||||
pub type MobileTokenStore = Arc<Mutex<HashMap<String, MobileStoreEntry>>>;
|
||||
|
||||
pub mod models;
|
||||
pub mod services;
|
||||
|
||||
Reference in New Issue
Block a user