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

Closed
opened 2026-04-17 22:37:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5652
Author: @TanerKp
Created: 10/28/2025
Status: Merged
Merged: 10/28/2025
Merged by: @himself65

Base: canaryHead: docs/fix-builder-code-tabs-typo


📝 Commits (1)

  • 7f14cc7 docs: fix typo in import statement formatting in auth client

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/components/builder/code-tabs/index.tsx (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5652 **Author:** [@TanerKp](https://github.com/TanerKp) **Created:** 10/28/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `docs/fix-builder-code-tabs-typo` --- ### 📝 Commits (1) - [`7f14cc7`](https://github.com/better-auth/better-auth/commit/7f14cc7ca1858570cfed2864950380e2cc8d12ef) docs: fix typo in import statement formatting in auth client ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/builder/code-tabs/index.tsx` (+1 -1) </details> ### 📄 Description ### 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. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:37:39 -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#31742