This commit is contained in:
fengchuanhn@gmail.com
2026-05-16 12:04:31 +08:00
parent f2d33ee356
commit e119327ac2
6 changed files with 77 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
use tauri::State;
use crate::auth_session::{AuthSession, AuthUser};
#[tauri::command]
pub fn sync_auth_session(
session: State<'_, AuthSession>,
token: String,
user: Option<AuthUser>,
) {
session.set(token, user);
}

View File

@@ -1 +1,2 @@
pub mod auth;
pub mod quickjs;