@immahq/aegis 0.0.7 → 0.0.8
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/README.md +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,8 +71,12 @@ const myStorage: StorageAdapter = {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
// Initialize the library before any other operation
|
|
74
|
-
import {
|
|
75
|
-
|
|
74
|
+
import { Aegis, MemoryStorage } from "@immahq/aegis";
|
|
75
|
+
import type {StorageAdapter} from "@immahq/aegis";
|
|
76
|
+
|
|
77
|
+
//Plug in your preferred storage or use MemoryStorage
|
|
78
|
+
//const memory = new MemoryStorage();
|
|
79
|
+
const aegis = new Aegis(myStorage);
|
|
76
80
|
```
|
|
77
81
|
|
|
78
82
|
> **Security Note**: The adapter will store secret key material. In production, always use platform-secured storage (e.g., iOS Keychain, Android Keystore, or a securely encrypted database).
|