Skip to content

web: add vault lock timer setting#9395

Open
01zulfi wants to merge 1 commit intobetafrom
web/vault-lock-timer-setting
Open

web: add vault lock timer setting#9395
01zulfi wants to merge 1 commit intobetafrom
web/vault-lock-timer-setting

Conversation

@01zulfi
Copy link
Contributor

@01zulfi 01zulfi commented Feb 24, 2026

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
Copy link
Contributor

@thecodrr thecodrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add

{
type: "dropdown",
options: [
{ title: "1 minute", value: 1000 * 60 * 1 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an Immediately option in which we don't store the password at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't store the password, then when a note is unlocked, it won't be able to be edited and will throw the vault locked error

index.mjs:20  2026-02-25T09:09:46.953Z | ERROR | [notesnook-web]: Error: ERR_VAULT_LOCKED
    at Vault.<anonymous> (vault.js:229:23)
    at Generator.next (<anonymous>)
    at fulfilled (http://localhost:3000/@fs/home/zulfi/code/notesnook/notesnook/packages/core/dist/esm/api/vault.js:22:58) {} [62ms]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants