@js-soft/native-abstractions / Exports / INativeKeychainAccess
Access to native keychain
▸ delete(key
): Promise
<Result
<void
, ApplicationError
>>
Delete key-value pair
Name | Type |
---|---|
key |
string |
Promise
<Result
<void
, ApplicationError
>>
src/INativeKeychainAccess.ts:30
▸ get(key
): Promise
<Result
<INativeKeychainEntry
, ApplicationError
>>
Get value for the specified {@link key}
Name | Type | Description |
---|---|---|
key |
string |
string identifying a value |
Promise
<Result
<INativeKeychainEntry
, ApplicationError
>>
src/INativeKeychainAccess.ts:19
▸ init(): Promise
<Result
<void
, ApplicationError
>>
Initialize the module
Promise
<Result
<void
, ApplicationError
>>
src/INativeKeychainAccess.ts:38
▸ list(): Promise
<Result
<INativeKeychainEntry
[], ApplicationError
>>
List all key-value pairs added by the applicaion
Promise
<Result
<INativeKeychainEntry
[], ApplicationError
>>
src/INativeKeychainAccess.ts:34
▸ set(key
, value
): Promise
<Result
<void
, ApplicationError
>>
Add key-value pair to keychain
Name | Type |
---|---|
key |
string |
value |
any |
Promise
<Result
<void
, ApplicationError
>>