11
This commit is contained in:
12
src-tauri/src/commands/auth.rs
Normal file
12
src-tauri/src/commands/auth.rs
Normal 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);
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
pub mod auth;
|
||||
pub mod quickjs;
|
||||
|
||||
Reference in New Issue
Block a user