secureStore.get
The secret under key, or null.
Usage
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',
});Signatures
(key: string, options?: SecureStoreOptions): Promise<string | null>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | — |
options | SecureStoreOptions | No | — Default: {} |
Returns
Promise<string>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.