Knowledge

← All knowledge

Log in & sign up

src/app/(unauthenticated)/login/_components/login.knowledge.md

Source: PRD 06 — Authentication (Google sign-in), docs/product/prd-06-authentication-google-sign-in.md.

Screen role

The page a signed-out visitor lands on. Visitors arrive from the landing page, from a protected page they opened while signed out, after Log out, and after the 30-day session ended. Every successful sign-in goes to Overview, never to a page asked for earlier.

What the PRD mandates (and is built)

  • A simple page: the Google-provided Continue with Google button, with the agreement notice and working links to the Terms of Service and the Privacy Policy. No checkbox, no second agreement screen: pressing the button is the agreement. (The PRD puts the notice DIRECTLY UNDER the button; it now sits at the bottom of the card — see below.)
  • Opening either document keeps the login page (they open in a new tab).
  • Sign-in in progress shows progress and cannot be pressed twice.
  • Messages: Google unavailable or verification failed; account creation or acceptance save failed; acceptance could not be verified (no notice context); account blocked; session expired. A message has no Retry button: trying again is the same Continue with Google button.

NOT IN PRD 06 — email and password

PRD 06 lists password login as out of scope and states its goal as access "without creating or remembering a separate password". Email and password sign-in was added on the designer's request (2026-11-01), laid out from a design reference (centered title, provider button, OR divider, Email, Password with an eye, Remember, a full-width button, the other-page link, Forgot, one terms notice). Everything here is a draft with no recorded product decision behind it.

  • The form sits under an OR divider on both pages. Google stays the only provider: the reference also showed Apple, GitHub and SSO, and PRD 06 keeps other identity providers out of scope.
  • Log in adds Remember my email on this device (off by default; it keeps the email only, it does not lengthen the 30-day session) and Forgot your password? (clickable, goes nowhere: there is no reset flow).
  • Sign up shows the password rule as a hint under the label, and has neither of those.
  • Field errors (empty email, an email that isn't shaped like one, an empty password, a new password under the minimum) appear only after the button is pressed, under their own field, with the typed value kept. Nothing is sent until the form passes.
  • Server answers are not field errors. A wrong email or a wrong password is one message in the alert above (wrong-credentials), so it never says which half was wrong. too-many-attempts pauses password log in and points to Google. email-in-use (Sign up) says the email has an account.
  • One attempt at a time, either method: while one is in flight both buttons and every field are inert, and only the pressed button shows progress.
  • The password is never saved by the console. It has its own atom file, kept out of persistableAtoms, because the workboard session files are committed to git.
  • Where the notice sits: one notice at the bottom, covering every way in, as in the reference. PRD 06 wants it directly under the Google button; with a second way in, a notice under only that button would leave the form without one. One block, so moving it back is one move.

Open — needs a product decision (Kuk) and the backend (Bam)

  • Is password login in scope at all? PRD 06 says no. The PRD, its goal and the "no password" wording in the Sign up journey need to change with it.
  • Email verification on Sign up; the password policy (length, a breached-password check); the rate limit and its lockout time; the password reset flow and its pages.
  • What happens when a Google account and a password account share an email (PRD 06 puts account linking out of scope).
  • Whether email-in-use may say so, given it reveals that the account exists.
  • Where the agreement notice belongs, and what the backend must record when the visitor signed in with a password rather than the Google button.
  • Whether Remember should also keep the login method, as the reference's wording did.

Not on this page

Renewed agreement after a Terms or Privacy Policy update, and its failure to save, are handled inside the platform (PRD 06). Log out is on the platform's side too; it ends here, on this page.

Guessed — confirm or correct

  • The wording of every message. The PRD names each case and its behaviour, not the words.
  • The page heading and the line under it. The PRD specifies only the button and the notice.
  • The Google button is drawn for the console; production renders Google's own.
  • The Terms and Privacy URLs are placeholders (/terms, /privacy).
  • The wording of everything in the email and password form, and the 8-character password minimum.

Open questions

None recorded in the PRD for this page.