Start here. This is the direct spoken answer to practice first.
Why this question matters
Secrets and tokens move through many layers: config, logs, browser storage, databases, support tools, and deployment systems.
Server-side secrets like signing keys, database passwords, and API keys should live in a secret manager or protected environment configuration, not in source control. Tokens should be treated as credentials. The API should not log bearer tokens, refresh tokens, reset tokens, or secret values. If a token must be stored server-side, store a hash or opaque identifier when possible.