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
rizky_denianto caf005b82d
Penerbitan Plugin / persiapan (pull_request) Successful in 5s
Penerbitan Plugin / penerbitan (pull_request) Failing after 1m29s
Menyelesaikan plugin, siap ucob
2026-09-02 23:13:23 +07:00

16 lines
391 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>, payload: SAuthMuatanMasuk) -> Result<()> {
return app.auth().masuk(payload);
}
#[command]
pub(crate) async fn keluar<R: Runtime>(app: AppHandle<R>) -> Result<()> {
return app.auth().keluar();
}