Unggahan awal

This commit is contained in:
rizky_denianto committed 2026-09-01 23:19:26 +07:00
1 parent 7915065d1c
commit 8c96423e9b
19 files changed
+686

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
use serde::de::DeserializeOwned;
use tauri::{AppHandle, Runtime, plugin::PluginApi};
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 autentikasi(&self) -> crate::Result<Vec<()>> {
return Ok(vec![]);
}
}