tauri-plugin-keychain 2.0.2

A Tauri keychain plugin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::de::DeserializeOwned;
use tauri::{plugin::PluginApi, AppHandle, Runtime};

use crate::models::*;

pub fn init<R: Runtime, C: DeserializeOwned>(
  app: &AppHandle<R>,
  _api: PluginApi<R, C>,
) -> crate::Result<Keychain<R>> {
  Ok(Keychain(app.clone()))
}

/// Access to the Keychain APIs.
pub struct Keychain<R: Runtime>(AppHandle<R>);