This repository has been archived on 2026-09-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tauri-plugin-auth/src/commands.rs
T

16 lines
389 B
Rust

use tauri::{AppHandle, Runtime, command};
use crate::AuthExt;
use crate::Result;
use crate::models::SAuthMuatanMasuk;
#[command]
pub(crate) async fn masuk<R: Runtime>(app: AppHandle<R>, muatan: SAuthMuatanMasuk) -> Result<()> {
return app.auth().masuk(muatan);
}
#[command]
pub(crate) async fn keluar<R: Runtime>(app: AppHandle<R>) -> Result<()> {
return app.auth().keluar();
}