Authentication and Account
This page covers signing in, staying signed in, and the security features that live on your account. It also marks which flows exist as web screens and which are API or admin only.
Signing up
Registration takes your name, email, password, and an organization name:
- First and last name: at least two characters each.
- Password: at least eight characters, plus strength checks.
- Organization name: two to 160 characters, unless you are redeeming an invitation.
Signing up creates three things in one transaction: your user, a workspace you
own, and an ADMIN membership in it. It also creates a session and sends a
verification email.
If your deployment requires email verification, sign-in is refused until the
address is confirmed. The verification token lasts 48 hours, is single use, and
resending uses the authenticated POST /auth/verify-email/send endpoint. The
web app has no verification page yet, so confirm the token through the API.
Signing in
The web sign-in page uses email and password. A few behaviors to know:
- Unknown email and wrong password return the same message, so the form cannot be used to discover who has an account.
- Ten failed password or code attempts in fifteen minutes locks the account for a cooling-off period.
- Disabled accounts are refused after the password is verified, with a distinct message.
- Passwords are never compared for locked or OAuth-only accounts. An OAuth-only user must set a password through the reset flow first.
Production enforces rate limits on the auth routes: login 5 requests per 15 minutes, register 3, forgot-password 3, reset-password 5, and TOTP verification 5 per 5 minutes. Development relaxes these.
Password reset
The forgot-password and reset-password pages are both live. The token lasts one hour and is single use. A successful reset revokes every session, so all devices must sign in again.
Sessions
Access tokens are checked against a live server-side session, which is why logout and revocation take effect immediately.
| Rule | Value |
|---|---|
| Idle timeout | 7 days |
| Absolute lifetime | 30 days |
| Refresh behavior | The refresh token rotates on use |
| Replay behavior | Reusing a rotated token revokes the session |
List, revoke and revoke-all are available at GET /auth/sessions,
DELETE /auth/sessions/:id and POST /auth/sessions/revoke-all. There is no
session-management screen in the web app yet.
Two-factor authentication
TOTP is implemented for two methods: an authenticator app and email codes.
POST /auth/totp/setupreturns a secret and provisioning URI. Enabling requires the secret plus a current code.- Enabling generates ten backup codes.
- Email 2FA sends a setup code first, then confirms it.
- Disabling 2FA requires the account password.
- A trusted device skips the challenge for 30 days.
- Pending 2FA tokens last 5 minutes and allow 5 attempts.
Web limitation: the login page does not yet present the TOTP challenge. A
user with 2FA enabled cannot complete web sign-in until that screen ships. Use
the API login flow (totp_required, pending_token, then
POST /auth/totp/verify) in the meantime.
Passkeys
Passkeys are implemented at the API level: registration behind an authenticated session, sign-in with a public begin/finish pair, plus list, rename and delete. Sign-in issues tokens directly and does not ask for a TOTP challenge. There is no web screen for passkeys yet.
Magic links and enterprise sign-in
- Magic links (
POST /auth/magic-linkand/magic-link/consume) last 15 minutes, have a 60-second resend cooldown, are single use, and still require TOTP when it is enabled. - OAuth providers redirect through the web callback page. An OAuth sign-up does not create a workspace; zero-workspace users are sent to create one.
- Enterprise SSO is implemented over OIDC and SAML at the API level
(
/auth/sso/*,/auth/saml/*) with no web screens.
Profile and privacy
GET/PUT/DELETE /profile operates on your own account.
- Changing your email or password requires
current_password. - Changing your email clears its verified status.
- Deletion is a soft delete plus cookie clearing. Administrators cannot delete their own account through this route.
- GDPR export is available to you and to platform administrators.
- Erasure requests are admin-only, require a reason, and cannot be self-served.
- Recovery contacts (email and phone) are API-only settings for account recovery. Every write requires the account password. PruneSEO does not offer sign-in by recovery contact.
The web app currently exposes an account overview and profile editing only. The sessions, 2FA, passkey, recovery and GDPR screens do not exist yet.
Workspaces and switching
An account may belong to several workspaces. Organization-scoped requests must
name the active workspace with the X-Organization-ID header; if you belong to
exactly one, it is selected automatically.
A workspace that is suspended, soft-deleted, or not one you belong to returns 404 Organization not found, deliberately, so the API cannot be used to probe for tenants.
Members and invitations
Member and invitation management is API or admin only:
GET/POST /organizations/:id/members,PATCH/DELETE .../:members/:userId.- Assignable organization roles are
ADMIN,EDITORandUSER. - The owner cannot be removed or demoted.
- A caller cannot grant a role whose permissions exceed their own.
- Invitations are email-bound, expire after 7 days, allow one outstanding
invitation per address, and have the states
pending,accepted,revokedandexpired. - Acceptance is
POST /invitations/accept, signed in, with the token bound to the caller's email. New users can passinvitation_tokenat registration.
The web acceptance page is not built yet, so invitation email links are currently dead ends even though acceptance works through the API.
A note on menus
Menu visibility is not a security boundary. The web app does not currently hide or show every item based on permissions. Treat a visible screen as a convenience and rely on the API's authorization checks, described in Roles and Permissions.