Back to the lesson

How to keep API keys out of your frontend

Use your own practice account and test data. Record an observation for each completion claim. You can print this worksheet or keep your answers in your own notes; this page does not submit them.

1. Know which value must stay private

Which value must stay off the visitor’s page, and what evidence will you ask the assistant to inspect?

Review your work

2. Start the supplied protected action

Did the action run, and what private-setup or provider stage is still blocked?

Review your work

3. Check privacy and failure together

What did the public-output check and the rejected attempt actually show?

Review your work

4. Make one bounded change safely

Provide the changed action and the privacy/valid/invalid checks you actually ran.

Review your work

What is still unresolved?