Keep vault state and file transfers within their originating session

This commit is contained in:
2026-09-06 09:39:05 +03:00
parent 6dc6fadda8
commit 277c9407a2
5 changed files with 73 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
/** Snapshot of an authenticated operation; never continue it under another token. */
export function sessionGuard(readToken) {
const token = readToken();
return () => Boolean(token) && readToken() === token;
}