Skip to content

docs(ai-gateway): tighten authentication wording - #331

Merged
wixysam merged 1 commit into
mainfrom
docs/ai-gateway-auth-wording
Oct 14, 2026
Merged

wixysam merged 1 commit into
mainfrom
docs/ai-gateway-auth-wording

Conversation

@wixysam

@wixysam wixysam commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #330. JSDoc wording changes in packages/sdk/src/modules/ai-gateway.types.ts, matching edits made on base44-dev/mintlify-docs#2569.

  • Service role bullet: split the semicolon sentence into short sentences and name what gets the 403 (calls from the browser or with a user's token).
  • token field: replaced the two-token description and the "gateway expects the service-role token" sentence, which contradicted the user authentication bullet, with one sentence saying the calling mode determines whose token it is.
  • Authentication Modes: added the paragraph on what the mode changes. It exists on the mintlify page but was never in the SDK source, so a docs regeneration would remove it. The first sentence now says the mode decides which token you get and whether the gateway accepts the call.

Verified by running npm run create-docs and diffing the generated ai-gateway.mdx against the mintlify page for these sections. One cosmetic difference: the generator renders inline code in the token field with double backticks.

🤖 Generated with Claude Code

Split the service role bullet into short sentences, simplify the token
field description so it no longer contradicts the user authentication
bullet, and add the paragraph on what the mode does and doesn't change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.53-pr.331.bf2d5aa

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.53-pr.331.bf2d5aa"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.53-pr.331.bf2d5aa"
  }
}

Preview published to npm registry — try new features instantly!

@wixysam
wixysam merged commit cc3f06b into main Oct 14, 2026
8 checks passed
@wixysam
wixysam deleted the docs/ai-gateway-auth-wording branch October 14, 2026 11:49
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