UNDERSTAND
Bring these concepts with you
BUILD
Your implementation
- Download starter.mjs and checks.mjs into the same empty folder. Use Node.js 22.12 or newer; no packages are required.
- Implement signup using the provided passwordRecord helper. Store the salt and verifier, never the submitted password. Reject malformed and duplicate IDs.
- Use a fixed demo tenant, as the HTTP scaffold does. Real organization membership needs a separate verified invitation or provisioning flow.
function signup(id, password, organizationId) {
// Validate input, reject duplicates, then store a password verifier.
}Need a hint?
- The starter already supplies a salted scrypt helper. Store its result on the account record.
- Validate before mutating the users Map. Keep account IDs unique.
Saved on this device · 0 / 6000 · Do not include passwords or private data.
VERIFY
Acceptance checks
From the folder containing your downloaded files, run:
node checks.mjs ./starter.mjs 1This runs checks up to this step. Earlier steps must work first. Mark each result only after checking your implementation; the website does not run or grade it.
Record your attempt to enable the checklist and reference comparison.
Compare with the reference
Attempt the step first, then compare decisions and behavior. There can be more than one correct implementation.
EXPLAIN
Your interviewer asks
Why is a salted password hash different from encrypting a password?
Say your answer aloud, then record the trade-offs and evidence in your notes above.
LOCAL VOICE REHEARSAL
Rehearse your step walkthrough aloud
00:00/ 02:00