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/desktop.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

25 lines
562 B
Rust

use serde::de::DeserializeOwned;
use tauri::{AppHandle, Runtime, plugin::PluginApi};
use crate::models::SAuthMuatanMasuk;
pub fn init<R: Runtime, C: DeserializeOwned>(
app: &AppHandle<R>,
_api: PluginApi<R, C>,
) -> crate::Result<Auth<R>> {
Ok(Auth(app.clone()))
}
/// Access to the auth APIs.
pub struct Auth<R: Runtime>(AppHandle<R>);
impl<R: Runtime> Auth<R> {
pub fn masuk(&self, muatan: SAuthMuatanMasuk) -> crate::Result<()> {
return Ok(());
}
pub fn keluar(&self) -> crate::Result<()> {
return Ok(());
}
}