Back to the lesson

Original working file

reference/assignment-walkthrough.txt

Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.

ILLUSTRATIVE WORKED WALKTHROUGH

These steps explain a complete approach. They are not a claim that this live provider/account test was performed for you. Use your own project and record your actual observations.

1. Call the private-note endpoint directly with no Authorization header: expect 401 and no note. A made-up bearer token must also fail. The browser's userId or a hidden button does not satisfy the server's identity check.

2. With your actual verified session token in your own practice project, expect the configured server note and Cache-Control: private, no-store. Keep the note out of public HTML/JavaScript. Do not paste a real bearer token into a shared test report.

3. After sign-out, the UI should clear private content and stop making authenticated requests. An already copied access token may remain usable until expiry: sign-out UI behaviour is not an instant-revocation guarantee. This shared-note lab authorizes signed-in users; per-user ownership is the separate profile exercise.