Skip to content

docs: add direct HTTP quickstart#57

Merged
Bccorb merged 2 commits into
mainfrom
docs/direct-http-quickstart
Jul 6, 2026
Merged

docs: add direct HTTP quickstart#57
Bccorb merged 2 commits into
mainfrom
docs/direct-http-quickstart

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The docs pointed to a "Direct HTTP APIs (advanced)" integration path but never showed it. Integrators not using the SDKs had to reverse-engineer the login flow from route files.

This adds docs/direct-http-quickstart.md: an end-to-end curl walkthrough of the email-OTP login flow:

  1. POST /login -> ephemeral token + loginMethods
  2. GET /otp/generate-login-email-otp (ephemeral Bearer) -> OTP, with external-delivery mode for headless retrieval
  3. POST /otp/verify-login-email-otp -> access + refresh tokens
  4. GET /users/me (access Bearer)
  5. POST /refresh -> rotated tokens

Every request and response shape is taken directly from the route schemas, including two things that are easy to get wrong:

  • The refresh token is sent in the Authorization header, not the body.
  • Refresh rotates: the old refresh token is invalidated, and reuse revokes the session chain.

It also calls out that external delivery requires a service token in production, and that direct integration is the advanced path (token custody notes link to the Deployment Topology section).

Notes

Bccorb added 2 commits July 5, 2026 20:17
Add docs/direct-http-quickstart.md: an end-to-end curl walkthrough of
the direct HTTP integration path (login -> ephemeral token -> email OTP
-> access/refresh tokens -> authenticated call -> refresh). Request and
response shapes are taken from the route schemas, including that the
refresh token is sent in the Authorization header and that refresh
rotates the token. Link it from the README direct-HTTP entry and add it
to the docs gitignore allowlist.
@Bccorb Bccorb merged commit 060d7ea into main Jul 6, 2026
2 of 3 checks passed
@Bccorb Bccorb deleted the docs/direct-http-quickstart branch July 6, 2026 00:28
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants