The siweClient export is missing from better-auth/client/plugins #1549

Closed
opened 2026-03-13 08:47:28 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @TheoCouss on GitHub (Jul 21, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

When installing better-auth in a fresh React or Next.js project and trying to import siweClient from the suggested path, the following import fails: import { siweClient } from "better-auth/client/plugins";

Current vs. Expected behavior

The siweClient should be exported correctly from the plugin path, or the documentation should reflect the correct import path.

What version of Better Auth are you using?

1.3.2

Provide environment information

Node LTS

Which area(s) are affected? (Select all that apply)

Package

Originally created by @TheoCouss on GitHub (Jul 21, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce When installing `better-auth` in a fresh React or Next.js project and trying to import `siweClient` from the suggested path, the following import fails: ` import { siweClient } from "better-auth/client/plugins";` ### Current vs. Expected behavior The siweClient should be exported correctly from the plugin path, or the documentation should reflect the correct import path. ### What version of Better Auth are you using? 1.3.2 ### Provide environment information ```bash Node LTS ``` ### Which area(s) are affected? (Select all that apply) Package
GiteaMirror added the bug label 2026-03-13 08:47:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 21, 2025):

Hi @TheoCouss! I'm Dosu and I’m helping the better-auth team.

You're right—siweClient isn't exported from better-auth/client/plugins in v1.3.2, which is why that import fails. The correct import path is better-auth/client/plugins/siwe instead see code. The documentation currently suggests the wrong path, but a fix has already been merged and will be available in a future release see PR. For now, use:

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

This pattern (importing directly from the submodule) is used for some other plugins as well. Watch for the next release if you want to use the top-level plugin import.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Jul 21, 2025): <!-- Greeting --> Hi @TheoCouss! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> You're right—`siweClient` isn't exported from `better-auth/client/plugins` in v1.3.2, which is why that import fails. The correct import path is `better-auth/client/plugins/siwe` instead [see code](https://github.com/better-auth/better-auth/blob/fa9b4973704f39d7cf7b8c53a7cef8d896209732/packages/better-auth/src/plugins/siwe/client.ts). The documentation currently suggests the wrong path, but a fix has already been merged and will be available in a future release [see PR](https://github.com/better-auth/better-auth/pull/3503). For now, use: ```js import { siweClient } from "better-auth/client/plugins/siwe"; ``` This pattern (importing directly from the submodule) is used for some other plugins as well. Watch for the next release if you want to use the top-level plugin import. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/347acd21-556c-41a1-a479-ee151a23fccf?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/3532)
Author
Owner

@grmkris commented on GitHub (Jul 26, 2025):

still missing in better-auth@1.3.4

@grmkris commented on GitHub (Jul 26, 2025): still missing in better-auth@1.3.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1549