Expand OAuth 2.0 PKCE tutorial metadata, summary, and FAQ#100
Expand OAuth 2.0 PKCE tutorial metadata, summary, and FAQ#100
Conversation
Deploying qf-api-docs with
|
| Latest commit: |
de29988
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e53a0cb7.qf-api-docs.pages.dev |
| Branch Preview URL: | https://seo-geo-priority1-fixes.qf-api-docs.pages.dev |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b456cf7d50
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
Pull request overview
This PR enhances the OAuth 2.0 (Authorization Code + PKCE) getting-started tutorial to be more discoverable and self-serve for developers integrating Quran Foundation User APIs.
Changes:
- Added SEO-focused frontmatter metadata (title/description/keywords) and a “Quick Summary” info block near the top.
- Added additional scope clarification near the “headers” section to reduce confusion about which endpoints require which scopes.
- Added a new FAQ section covering scopes, token lifetime/refresh, environment isolation, client types, required headers, troubleshooting
invalid_client, and mapping users viasub.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
This PR expands the OAuth 2.0 getting-started tutorial for Quran Foundation User APIs so it is easier to discover, quicker to skim, and more self-serve for developers integrating PKCE-based authentication.
What Changed
x-auth-tokenandx-client-idrequest headers in a single reference pointinvalid_clientsubclaimWhy
The existing tutorial already explained the PKCE flow well, but it was missing several high-value pieces of developer-facing context:
This update makes the page more useful as both an onboarding guide and a durable reference for teams implementing Quran Foundation User API authentication.
User Impact
Developers should be able to:
Root Cause
The tutorial content was strong on the step-by-step flow, but thin on search metadata and recurring operational questions that developers typically need after the first read-through.
Validation
yarn buildNotes
This is a docs-only change. No API behavior or runtime code paths were modified.