---
title: "Sign-in and devices"
description: "Password, passkeys, the list of signed-in devices, the device limit, remote sign-out, and sign-in rate limiting."
lang: "en"
version: "1.84.0"
url: "https://docs.calends.date/en/data/sign-in/"
markdown_url: "https://docs.calends.date/en/data/sign-in.md"
section: "Data & security"
llms_index: "https://docs.calends.date/llms.txt"
llms_full: "https://docs.calends.date/llms-full.txt"
agents_guide: "https://calends.date/AGENTS.md"
---

# Sign-in and devices

> Password, passkeys, the list of signed-in devices, the device limit, remote sign-out, and sign-in rate limiting.

- Canonical page: https://docs.calends.date/en/data/sign-in/
- Markdown source: https://docs.calends.date/en/data/sign-in.md
- Calends version: v1.84.0

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](https://docs.calends.date/en/start/first-setup.md).

### 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.

1. Make sure you can retrieve or reconfigure `SETUP_TOKEN`, and back up the database.
2. For Cloudflare, run the command below from your deployment directory; Docker uses the Node command in the next section:

   ```bash
   # Cloudflare
   npx wrangler d1 execute DB --remote --command "DELETE FROM kv WHERE key = 'auth'"
   ```

3. Open `/login`, enter the setup token and set a new password.
4. 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:

```bash
docker exec -i calends node --input-type=module <<'NODE'

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();
NODE
```

Open `/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](https://docs.calends.date/en/self-host/custom-domain.md).

---

## Related Pages & Global AI Discovery

To explore broader context beyond this page, fetch any of the Markdown or plain-text resources below directly:

### Same Section (Data & security)
- [Backup and restore](https://docs.calends.date/en/data/backup.md)
- [Import data and export CSV](https://docs.calends.date/en/data/csv.md)
- [Sign-in and devices](https://docs.calends.date/en/data/sign-in.md) *(current)*
- [Privacy](https://docs.calends.date/en/data/privacy.md)

### Reading Order
- Previous: [Import data and export CSV](https://docs.calends.date/en/data/csv.md)
- Next: [Privacy](https://docs.calends.date/en/data/privacy.md)

### Global Calends Resources
- Read-only Docs MCP Server (zero auth Streamable HTTP): https://docs.calends.date/mcp
- Complete Docs Index (all 37 topics with `.md` links): https://docs.calends.date/llms.txt
- Complete English Docs Bundle (single file): https://docs.calends.date/llms-full.txt
- Complete Simplified Chinese Docs Bundle: https://docs.calends.date/llms-zh.txt
- Docs AI Agent Guide: https://docs.calends.date/AGENTS.md
- Product Website Overview (Markdown): https://calends.date/en/index.md
- Product LLMs Index & Full Reference: https://calends.date/llms.txt | https://calends.date/llms-full.txt
- Deployment & MCP Agent Guide (AGENTS.md): https://calends.date/AGENTS.md
- FAQ & Calends vs Wallos Comparison (Markdown): https://calends.date/en/faq.md | https://calends.date/en/compare.md
- Complete Changelog (Markdown): https://calends.date/en/releases.md
