Skip to content

docs(auth): API key -> JWT snippet and SDK cross-link - #2

Merged
mrmx merged 1 commit into
mainfrom
docs/auth-readme
May 25, 2026
Merged

docs(auth): API key -> JWT snippet and SDK cross-link#2
mrmx merged 1 commit into
mainfrom
docs/auth-readme

Conversation

@mrmx

@mrmx mrmx commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Phase 2 follow-up: the regen PR (#1) updated the generated client but the README still had no usage guidance for the new auth operation. This adds:

  • ### API key -> JWT snippet in Quick start showing auth.sync() with an AuthenticatedClient configured to send X-API-Key (via prefix="" + auth_header_name="X-API-Key").
  • Documents the QTSURFER_APIKEY env-var convention (matches the e2e script and the upcoming SDK helper).
  • Cross-link to sdk-python as the recommended path for production callers (token refresh, env pickup, pluggable stores live in the SDK, not the raw client).

Docs-only — no code, no regen, no version bump.

Part of openapi-auth-rollout Phase 2 (#168).

Test plan

  • Snippet uses real generated symbols (auth.sync, AuthenticatedClient)
  • No additions outside README.md

Generator regen does not touch the README. Add a short usage snippet showing
how to call `auth.sync()` with an AuthenticatedClient configured to send
X-API-Key, document the QTSURFER_APIKEY env-var convention, and point
production callers at the sibling SDK for token-refresh handling.

Part of openapi-auth-rollout Phase 2 (#168).
@mrmx
mrmx merged commit 312430e into main May 25, 2026
5 checks passed
@mrmx
mrmx deleted the docs/auth-readme branch May 25, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant