Represents a storage utility for secrets (or any information that is sensitive) that will be stored encrypted. The implementation of the secret storage will be different on each platform and the secrets will not be synced across machines.
Fields
store(key:String, value:String):Thenable<Void>
Store a secret under a given key.
Parameters:
key | The key to store the secret under. |
---|---|
value | The secret. |
get(key:String):Thenable<Null<String>>
Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.
Parameters:
key | The key the secret was stored under. |
---|
Returns:
The stored value or undefined
.
delete(key:String):Thenable<Void>
Remove a secret from storage.
Parameters:
key | The key the secret was stored under. |
---|