capacitor-secure-storage-plugin 0.6.4-testing → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
Capacitor plugin for storing string values securly on iOS and Android.
|
|
4
4
|
|
|
5
5
|
## How to install
|
|
6
|
+
|
|
6
7
|
For Capacitor v3
|
|
7
8
|
|
|
8
9
|
```
|
|
9
10
|
npm install capacitor-secure-storage-plugin
|
|
10
11
|
```
|
|
11
12
|
|
|
12
|
-
|
|
13
13
|
For Capacitor v2 - install with fixed version 0.5.1
|
|
14
14
|
|
|
15
15
|
```
|
|
16
16
|
npm install capacitor-secure-storage-plugin@0.5.1
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
## Usage
|
|
21
20
|
|
|
22
21
|
For Capacitor v3
|
|
@@ -73,9 +72,11 @@ public class MainActivity extends BridgeActivity {
|
|
|
73
72
|
|
|
74
73
|
* **keys**(): Promise<{ value: string[] }>
|
|
75
74
|
* **set**(options: { key: string; value: string }): Promise<{ value: boolean }>
|
|
75
|
+
- return true in case of success otherwise throws an error
|
|
76
76
|
* **remove**(options: { key: string }): Promise<{ value: boolean }>
|
|
77
|
+
- return true in case of success otherwise throws an error
|
|
77
78
|
* **clear**(): Promise<{ value: boolean }>
|
|
78
|
-
-
|
|
79
|
+
- return true in case of success otherwise throws an error
|
|
79
80
|
|
|
80
81
|
- **getPlatform**(): Promise<{ value: string }>
|
|
81
82
|
- returns which implementation is used - one of 'web', 'ios' or 'android'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-secure-storage-plugin",
|
|
3
|
-
"version": "0.6.4
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|