[GH-ISSUE #4124] SIWE doesn't has the option to rename table #27159

Closed
opened 2026-04-17 18:00:22 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ibrunotome on GitHub (Aug 21, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4124

Originally assigned to: @himself65 on GitHub.

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Add SIWE plugin
  2. Try to add schema option to the plugin, it doesn't exist.

Current vs. Expected behavior

SIWE implementation doesn't have the "mergeSchema" like other plugins such twoFactor etc. The schema is hardcoded, preventing us to rename table and columns to snake_case.

What version of Better Auth are you using?

1.3.7

System info

System:
    OS: macOS 15.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 120.78 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 133.0.6943.142
    Safari: 18.6

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

Backend, Package, Documentation

Auth config (if applicable)


Additional context

No response

Originally created by @ibrunotome on GitHub (Aug 21, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4124 Originally assigned to: @himself65 on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Add SIWE plugin 2. Try to add schema option to the plugin, it doesn't exist. ### Current vs. Expected behavior SIWE implementation doesn't have the "mergeSchema" like other plugins such twoFactor etc. The schema is hardcoded, preventing us to rename table and columns to snake_case. ### What version of Better Auth are you using? 1.3.7 ### System info ```bash System: OS: macOS 15.6 CPU: (10) arm64 Apple M1 Pro Memory: 120.78 MB / 16.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 133.0.6943.142 Safari: 18.6 ``` ### Which area(s) are affected? (Select all that apply) Backend, Package, Documentation ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the lockedenhancement labels 2026-04-17 18:00:22 -05:00
Author
Owner

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

You're correct—currently, the SIWE plugin in Better Auth v1.3.7 does not support schema customization or a mergeSchema option. The schema for SIWE is hardcoded, so you can't rename its tables or columns (for example, to snake_case) through plugin options, unlike plugins such as twoFactor or JWKS which do support this feature. The SIWE plugin creates a fixed walletAddress table with set field names, and there are no hidden or undocumented configuration options for customizing these names in either the code or documentation [source].

If you need custom table or column names, you would have to fork the plugin or handle the mapping at the database layer. If schema customization is important for your project, you might want to track related feature requests or contribute to the project.

To reply, just mention @dosu.


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

<!-- gh-comment-id:3210895154 --> @dosubot[bot] commented on GitHub (Aug 21, 2025): <!-- Answer --> You're correct—currently, the SIWE plugin in Better Auth v1.3.7 does not support schema customization or a `mergeSchema` option. The schema for SIWE is hardcoded, so you can't rename its tables or columns (for example, to snake_case) through plugin options, unlike plugins such as twoFactor or JWKS which do support this feature. The SIWE plugin creates a fixed `walletAddress` table with set field names, and there are no hidden or undocumented configuration options for customizing these names in either the code or documentation [[source](https://github.com/better-auth/better-auth/pull/2579)]. If you need custom table or column names, you would have to fork the plugin or handle the mapping at the database layer. If schema customization is important for your project, you might want to track related feature requests or contribute to the project. <!-- 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/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3a1c4006-f813-4dfa-9735-31045f3d9a23?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&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/4124)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27159