# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Add the table in `design.md`. If there is no app yet, build the smallest one: a `users` table and sessions. Write a stand-in provider that tests can drive. Check: migrations run from empty and the stand-in answers on this machine. 2. **PKCE and the redirect (R1).** For the providers in the `providers` input. Check: a test reproduces the vector in `design.md`, and the R1 tests pass. 3. **The callback (R2).** Check: the R2 acceptance tests pass. 4. **Who it is (R3).** The ID token checks for Google, the two calls for GitHub. Check: the R3 acceptance tests pass, one per way a token can be wrong. 5. **Which account (R4).** A pure function from what the provider said and what the database holds to one of the five outcomes. Honour `link_by_email` and `allow_sign_up`. Check: the R4 acceptance tests pass without a network. 6. **Session (R6) and settings (R5).** Check: the R5 and R6 acceptance tests pass. 7. **Pages (R7).** Use the `app_name` input. Check: every page can be used with a keyboard alone and at 360 pixels wide. 8. **Finish.** Write the README and run the whole test suite. Check: every item under "Definition of done" in `spec.md` is true.