#tauri-plugin #keychain #key #password

sys tauri-plugin-keychain

A Tauri keychain plugin

2 stable releases

2.0.2 Nov 20, 2024
2.0.1 Nov 18, 2024

#252 in Authentication

Download history 250/week @ 2024-11-15 57/week @ 2024-11-22 25/week @ 2024-11-29 5/week @ 2024-12-06

337 downloads per month

MIT/Apache

22KB
528 lines

Tauri keychain plugin

This plugin is used to hold keys or password, and even after uninstalling and reinstalling your app, they still exist

  • ios: impl of Keychain services and your need xcode add Signing & Capabilities - Keychain Sharing
  • android: impl of AccountManager

get keychain

import { getItem } from 'tauri-plugin-keychain'
getItem(key)
  • or
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|get_item', {
	key
})

save keychain

import { saveItem } from 'tauri-plugin-keychain'
saveItem(key, password)
  • or
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|save_item', {
	key,
	password
})

remove keychain

import { removeItem } from 'tauri-plugin-keychain'
removeItem(key)
  • or
import { invoke } from '@tauri-apps/api/core'
invoke('plugin:keychain|remove_item', {
	key
})

Dependencies

~18–59MB
~893K SLoC