Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Coding in the AI era
/
Generated code security
A real API token was pasted into a model prompt and then removed from the generated fixtu…
from Generated code security
Node 24
intermediate
2 min
A real API token was pasted into a model prompt and then removed from the generated fixture. What is the correct response?
Treat it as exposed under the provider retention model, revoke or rotate it, and inspect downstream use
No action is needed because the latest fixture no longer contains the token
Replace half the token with asterisks in the same prompt
Commit the deletion so repository history proves the token is gone
Check
Ask AI about this kata
Report an error
previous kata
A generated change adds a familiar-looking package for a small helper. Which evidence bes…
Quiz
next kata
What does this object-level authorization check print for the cross-tenant request?
Predict the output
A new version is available
Reload