Skip to content

docs(auth): pass userId in the admin listFactors example - #2903

Open
nrichers wants to merge 1 commit into
masterfrom
nikrichers/docs-1750-admin-listfactors-example
Open

nrichers wants to merge 1 commit into
masterfrom
nikrichers/docs-1750-admin-listfactors-example

Conversation

@nrichers

Copy link
Copy Markdown

🔍 Description

Docs fix from agent feedback. The auth.admin.mfa.listFactors TSDoc example now passes the required userId.

What changed?

  • The example in packages/core/auth-js/src/lib/types.ts changes from listFactors() to listFactors({ userId: 'a89baba7-...' }). It uses the same placeholder ID as the deleteFactor example.
  • TSDoc only. No code change.

Why was this change needed?

An AI agent reported through the Supabase MCP feedback tool (Nov 22) that the example does not match the signature. listFactors(params: AuthMFAAdminListFactorsParams) requires userId, so the example does not type-check. Tracked in Linear as DOCS-1750. The example feeds the JavaScript reference page.

🔄 Breaking changes

  • This PR contains no breaking changes

📋 Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run pnpm nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

📝 Additional notes

The supabase.com reference updates when the docs site picks up the next TSDoc release.

🤖 Generated with Claude Code

The example called listFactors() with no arguments, but the method
requires { userId }. An agent reported this through MCP feedback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nrichers
nrichers requested review from a team as code owners November 24, 2026 04:39
@github-actions github-actions Bot added the auth-js Related to the auth-js library. label Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Updated the MFA factor listing example to include a user ID argument, keeping the example aligned with the API’s expected usage. This change affects documentation only; no exported declarations or application behavior were changed.

The listFactors documentation example now passes a userId argument. The API declarations did not change.

Suggested labels: documentation, auth-js

Change: Other

Merge Risk: Minimal · up to d0083

This documentation-only change corrects the listFactors example so it type-checks. It does not change runtime behavior and is safe to merge.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 05a2c00e-b0bb-4baa-840b-db9074eabba9
Commits

Reviewing files that changed from the base of the PR and between 840843d and d0083c8.

Files selected for processing: 1

  • packages/core/auth-js/src/lib/types.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2903

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2903

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2903

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2903

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2903

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2903

commit: d0083c8

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 75.109% — nikrichers/docs-1750-admin-listfactors-example into master. No base build found for master.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth-js Related to the auth-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants