You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,19 @@ import { configure } from "..";
178
178
configure({ cacheLifetime:5*60*1000 });
179
179
```
180
180
181
-
### Clear the passkey/keypair cache
181
+
### Manually cache a lock-key
182
+
183
+
To manually cache a lock-key silently (without passkey prompt):
184
+
185
+
```js
186
+
import { cacheLockKey } from"..";
187
+
188
+
cacheLockKey(existingLockKey);
189
+
```
190
+
191
+
**WARNING:** This is generally not recommended; it's provided only for advanced use-cases, such as a lock-key being preserved (temporarily) to approximate a "login session" across multiple page loads. Avoid this approach unless you're certain you need it, as it can degrade some of the security assurances behind the design of this library.
192
+
193
+
### Clear the lock-key cache
182
194
183
195
To clear a cache entry (effectively, "logging out"):
0 commit comments