docs(sso): expose SSO module in the generated SDK reference - #240
Conversation
Remove @internal from the SsoModule interface and SsoAccessTokenResponse so the SSO module (getAccessToken and getIdToken) is included when the SDK reference docs are generated. The JSDoc was already complete but hidden, so neither method appeared on the reference site. Also add a leading comment to the getIdToken example so the generator renders the import inside the code block instead of hoisting it into the code-group title. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @wixysam's task —— View job Review: PR #240 — expose SSO module in the generated SDK reference
Reviewed the diff plus the surrounding SSO/doc-generation setup. The change is small, correct, and reads cleanly. One notable gap worth confirming before merge. Main finding — the
|
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.40-pr.240.92d2811Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.40-pr.240.92d2811"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.40-pr.240.92d2811"
}
}
Preview published to npm registry — try new features instantly! |
Remove @internal from the asServiceRole.sso field in the Base44Client type. Without this, the SSO module had no reference page but was still absent from the createClient / createClientFromRequest return types and the SDK overview. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @wixysam's task —— View job Review: PR #240 — expose SSO module in the generated SDK reference
Re-reviewed the current diff after the sync. The main finding from the previous review has been addressed — What's good
Worth reconciling now that this is public docs1. Example inconsistency for 2. Potential real type/runtime mismatch in
If the interceptor unwraps Bugs / security / performance
Test coverage
Summary: Looks good to merge — the prior blocking concern (client • Branch: |
Rewrite getAccessToken and getIdToken to describe the actual behavior: both work only for the user who made the current request (the on-behalf-of user must match userid), getAccessToken refreshes an expired token when possible, and getIdToken returns the stored token as-is. Reference the auth module for obtaining the user id, and remove the module-level @example to match the other module reference pages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @wixysam's task —— View job Review: PR #240 — expose SSO module in the generated SDK reference
Re-reviewed the current state. The prior blocking concern (client I also confirmed the axios unwrap behavior, which settles the two open questions from earlier reviews. Axios unwrap confirmed — and it changes the verdict on the examplesThe response interceptor returns
One fix worth making before this becomes public docsModule-level example uses (Note: the current diff for What's good
Bugs / security / performance
Test coverage
Summary: Looks good to merge — the change does what it claims and the typing/runtime shape is sound (verified against the interceptor). The only nice-to-fix is any lingering • Branch: |
Summary
The SSO module (
getAccessToken,getIdToken) has complete JSDoc but was marked@internal, so it never appeared on the generated SDK reference site. This removes@internalfrom theSsoModuleinterface andSsoAccessTokenResponseso the module is included in doc generation.@internalfromSsoModuleandSsoAccessTokenResponseinsrc/modules/sso.types.tsgetIdToken@exampleso the generator renders theimportinside the code block instead of hoisting it into the code-group titleWhy
getIdTokenwas added in #234 and shipped in 0.8.40, but because the whole module carries@internal, TypeDoc drops it during generation and neither SSO method shows up in the reference docs. The only public trace of it was in the agent-facing skills docs, which is the wrong place for SDK reference content.Note
This un-hides the whole SSO module, so
getAccessTokenis published alongsidegetIdToken. That's intentional (they're the module's two methods) but it is a deliberate "make SSO public in the reference" decision worth a look.Validation
npm run buildpasses (tsc)npm test -- sso.testpasses (4/4)npm run create-docsgeneratesinterfaces/sso.mdxcorrectlyThe paired mintlify-docs PR with the regenerated reference page: base44-dev/mintlify-docs#expose-sso-module
🤖 Generated with Claude Code