Keep vault state and file transfers within their originating session
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user