feat(site): document the WorkOS hosted sign-in (AuthKit) architecture#12
Merged
Merged
Conversation
New identity/authkit page: the hosted-page doctrine (owner correction 2026-07-09), why hosted (required MFA handled natively + the shared environment session that gives continuous sign-in across apps), the per-app AuthKit application layout with client table, the Next.js integration pattern from mukoko-news (/sign-in funnel, /auth/login initiate-login endpoint as the only getSignInUrl call site, hardened callback, server-side gates), the getSignInUrl cookie-write pitfall, the per-app configuration checklist (including the wrong-client-id misconfig that broke production), the FastAPI backend variant, and the org-scoped authorization note. Identity overview updated to link it; sidebar entry added. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113jJUqEQnhpqFB3PTh2RfA
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
shamwari-docs-ai | 1904ee2 | Commit Preview URL Branch Preview URL |
Jul 15 2026, 07:15 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nyuchi-docs | 1904ee2 | Commit Preview URL Branch Preview URL |
Jul 15 2026, 07:16 PM |
bryanfawcett
marked this pull request as ready for review
July 15, 2026 19:23
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.
Once credits are available, push a new commit or reopen this pull request to trigger a review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The identity section was an explicit stub. The recent auth work in
nyuchi/mukoko-news(#146/#147 — hosted AuthKit switch, MFA fix, cross-app SSO) settled the sign-in doctrine and surfaced hard-won operational lessons worth writing down before they're forgotten. Branch rebuilt from the latestmain(on top of the Kweli guides and CLAUDE.md added by other sessions).What changed
identity/authkit.mdx("Hosted sign-in (AuthKit)"):MFA = Required(hosted handles enrolment + challenge natively), and the shared environment-level session is what gives continuous sign-in across every Nyuchi/Mukoko app.mukoko-newsreference implementation:/sign-infunnel with no-loop error card,/auth/logininitiate-login endpoint as the onlygetSignInUrl()call site, hardened/auth/callback, server-side gates.getSignInUrl()cookie-write pitfall (throws during page render) as a tip box.mukoko-platformplatform-JWT flow), and the org-scoped authorization note.identity/overview.mdx: new "Landed" section linking the page; ticked the hosted-sign-in items off the TODO list; stub caution retained for the rest.astro.config.mjs: sidebar entry added (the sidebar is the source of truth for new pages).Testing
pnpm install && pnpm build— site builds clean, 50 pages, Pagefind index OK.🤖 Generated with Claude Code
https://claude.ai/code/session_0113jJUqEQnhpqFB3PTh2RfA
Generated by Claude Code