(shareId: string, password: string)
| 72 | } |
| 73 | |
| 74 | export function verifySharePassword(shareId: string, password: string): boolean { |
| 75 | const entry = store.get(shareId); |
| 76 | if (!entry || entry.visibility !== "password") return false; |
| 77 | return entry.passwordHash === password; |
| 78 | } |
| 79 | |
| 80 | export function revokeShare(shareId: string): boolean { |
| 81 | return store.delete(shareId); |