[PR #5652] docs: fix typo in import statement formatting in auth client #14388

Closed
opened 2026-04-13 09:27:01 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5652

State: closed
Merged: Yes


SUMMARY:

This pull request makes a minor formatting update to the import statement generation logic in the docs/components/builder/code-tabs/index.tsx file.

The change removes an unnecessary comma in the generated import list for plugin clients, which was leading to an error if options.magicLink was false and options.passkey true.

BEFORE:

import {
    ,
    passkeyClient
} from "better-auth/client/plugins";

AFTER:

import {
    passkeyClient
} from "better-auth/client/plugins";

Summary by cubic

Fixes the docs code-tabs import generator to remove a stray comma in plugin imports. Prevents a broken import when magicLink is disabled and passkey is enabled in the auth client example.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5652 **State:** closed **Merged:** Yes --- ### SUMMARY: This pull request makes a minor formatting update to the import statement generation logic in the `docs/components/builder/code-tabs/index.tsx` file. The change removes an unnecessary comma in the generated import list for plugin clients, which was leading to an error if `options.magicLink` was false and `options.passkey` true. ### BEFORE: ```ts import { , passkeyClient } from "better-auth/client/plugins"; ``` ### AFTER: ```ts import { passkeyClient } from "better-auth/client/plugins"; ``` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the docs code-tabs import generator to remove a stray comma in plugin imports. Prevents a broken import when magicLink is disabled and passkey is enabled in the auth client example. <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:27:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14388