| Crates.io | tauri-plugin-keychain |
| lib.rs | tauri-plugin-keychain |
| version | 2.0.2 |
| created_at | 2024-11-18 07:44:11.760961+00 |
| updated_at | 2024-11-20 03:10:11.839982+00 |
| description | A Tauri keychain plugin |
| homepage | |
| repository | https://github.com/lindongchen/tauri-plugin-keychain |
| max_upload_size | |
| id | 1451937 |
| size | 38,727 |
This plugin is used to hold keys or password, and even after uninstalling and reinstalling your app, they still exist
import { getItem } from 'tauri-plugin-keychain'
getItem(key)
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|get_item', {
key
})
import { saveItem } from 'tauri-plugin-keychain'
saveItem(key, password)
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|save_item', {
key,
password
})
import { removeItem } from 'tauri-plugin-keychain'
removeItem(key)
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|remove_item', {
key
})