# Design

This file is the part that is easy to get wrong. Task 2 says to run
`npm test`, so this starter is a Node.js page. A different project would name
its own test command, and would list that command under `safety`.

## The note

Store one string, the note, and the time it last changed.

## Who may change it

Use the project's sign-in. A request that changes the note has to be from a
signed-in person. Anyone may read the note. If the project has no sign-in,
stop and say so.

## The secret

When a save succeeds, set a cookie named `note_saved`. Its value is an
HMAC-SHA-256 of the saved text, keyed with `NOTE_SECRET`, written as hex.
Compare in constant time. `NOTE_SECRET` is the name listed under
`safety.secrets`.

## The command

Task 2 says to run `npm test`. That is the command listed under
`safety.commands`.
