secureStore.delete
Deletes the secret under key, found by key and keychainService alone.
Verwendung
Write, read and protect a secret
import { secureStore } from 'kuito';
await secureStore.set('token', 's3cret');
await secureStore.get('token'); // 's3cret', or null
await secureStore.delete('token');
await secureStore.set('pin', '1234', {
keychainService: 'auth',
keychainAccessible: 'afterFirstUnlock',
requireAuthentication: true,
authenticationPrompt: 'Unlock your account',
});Signaturen
(key: string, options?: SecureStoreOptions): Promise<void>Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
key | string | Ja | — |
options | SecureStoreOptions | Nein | — Standard: {} |
Rückgabe
Promise<void>
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.