Archived
Unggahan awal
This commit is contained in:
1 parent
7915065d1c
commit
8c96423e9b
19 files changed
+686
No files matched your search
@@ -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![]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user