Manage passwords, passkeys and signed-in devices, or follow this guide to revoke a session or recover access.
Calends has a single owner: one password, and as many passkeys as you like. Everything here is under Settings → Security.
The sign-in page is at /login. Signed-out visits to app pages redirect to /login?next=..., and signing in returns you to the requested page. For example, opening /wallet redirects to /login?next=%2Fwallet, then returns you to Wallet after sign-in.
Signed-out visitors opening / go to /public if the public page is enabled, or to /login otherwise. The public page is accessible only when enabled in Settings.
Password sign-in shows only the password field. Password managers use a fixed site account to save and fill credentials; you do not need to enter a username.
Password
- At least 8 characters, stored as a salted PBKDF2-SHA256 hash; the server never keeps it in plain text.
- Change password asks for the current one first. Afterwards, every device except the current one is signed out.
- The first password needs the setup token; see First-time setup.
Forgot your password
There is no email reset link. Change password requires your current password even on a signed-in device. A working passkey can still sign you in so you can export a backup first.
To reset the password, delete its record in the database you control, then initialize it again with SETUP_TOKEN. This deletes the password hash, keeps your ledger, and does not itself revoke existing sessions or passkeys.
-
Make sure you can retrieve or reconfigure
SETUP_TOKEN, and back up the database. -
For Cloudflare, run the command below from your deployment directory; Docker uses the Node command in the next section:
Terminal window # Cloudflarenpx wrangler d1 execute DB --remote --command "DELETE FROM kv WHERE key = 'auth'" -
Open
/login, enter the setup token and set a new password. -
Review Signed-in devices and your passkeys, and remove access you no longer need.
Docker password reset
Current images use Node 24 and do not include the Wrangler CLI. After backing up the database and confirming access to SETUP_TOKEN, use the existing container’s Node runtime to delete only the password row. Replace calends with your container name:
docker exec -i calends node --input-type=module <<'NODE'import { DatabaseSync } from 'node:sqlite';import { existsSync } from 'node:fs';import { join } from 'node:path';const file = join(process.env.DATA_DIR || '/data', 'v3/d1/miniflare-D1DatabaseObject', '9ba2b04bf514d9facfd57ed57d849e77241a7adc99d1c1545d06688b43d84248.sqlite');if (!existsSync(file)) throw new Error('Expected database not found; check DATA_DIR and volume');const db = new DatabaseSync(file);const result = db.prepare("DELETE FROM kv WHERE key = 'auth'").run();console.log('Password records removed:', result.changes);db.close();NODEOpen /login, initialize the password with SETUP_TOKEN, and review devices and Passkeys. This does not delete subscriptions or revoke existing sessions. It intentionally refuses a missing database instead of creating a new one. On Linux (systemd), stop the service and run the same Node snippet with DATA_DIR=/var/lib/calends using system Node 24 (or the bundled Node under /opt/calends), then start the service again.
Passkeys
After Add passkey, choose Sign in with passkey on the sign-in page to use Face ID, Touch ID or your device passcode. The list shows when each passkey was added and last used. Rename them to make them easier to recognize, and remove the ones you don’t need.
Passkeys are tied to your site’s domain and need HTTPS. After moving to a new domain, old passkeys won’t work there: sign in with your password and add new ones on the new domain.
Behind an HTTPS Docker reverse proxy, set SITE_URL to the browser-facing HTTPS URL: Passkey RP ID and verification origin prefer it. If a credential chosen through autofill is rejected, the login page shows the reason and re-arms autofill. For an unknown credential, supported browsers also notify the password manager to remove it.
Signed-in devices
Signed-in devices lists every active session: browser and OS, how it signed in (password or passkey), when, when it was last active, and an approximate location from the IP (not always accurate). The current one is marked This device. You can rename devices to distinguish your sessions.
- Sign out on a device ends that session immediately. You can’t remove the current device this way — use Sign out from the app menu instead.
- Sign out all other devices keeps only the current one.
- Max signed-in devices: 1, 2, 3, 5, 10 or 20; 10 by default. Past the limit, the device inactive the longest is signed out automatically; lowering the limit applies immediately.
Each session lasts 180 days. The session token lives in an HttpOnly, SameSite=Lax cookie (Secure over HTTPS), and the server only stores its hash.
Rate limiting
After 6 failed attempts from the same IP within 15 minutes, that IP is locked out for a while (“Too many attempts. Try again in 15 minutes.”). Password sign-in, passkey sign-in and first-time setup share this limit.
On Cloudflare, Calends uses Cloudflare’s visitor IP headers. Self-hosted deployments automatically read X-Forwarded-For only for local, private or Cloudflare connections, choosing the first untrusted address from the right; public direct connections ignore it. Usually leave TRUST_PROXY unset. off disables the header, and an IP/CIDR list adds trusted proxies. Nginx must append proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;. Restrict the port to the proxy; if untrusted visitors can connect directly on the same private network, use off. See Custom domain and HTTPS.