[GH-ISSUE #41] Siwe support #8103

Closed
opened 2026-04-13 03:09:46 -05:00 by GiteaMirror · 12 comments
Owner

Originally created by @reslear on GitHub (Sep 30, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/41

sample:
https://docs.reown.com/appkit/vue/core/siwe

Originally created by @reslear on GitHub (Sep 30, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/41 sample: https://docs.reown.com/appkit/vue/core/siwe
GiteaMirror added the lockedenhancementhelp wanted labels 2026-04-13 03:09:46 -05:00
Author
Owner

@luksch42 commented on GitHub (Oct 12, 2024):

Here is the official SIWE proposal.

ERC-4361: Sign-In with Ethereum
https://eips.ethereum.org/EIPS/eip-4361

<!-- gh-comment-id:2408535449 --> @luksch42 commented on GitHub (Oct 12, 2024): Here is the official SIWE proposal. ERC-4361: Sign-In with Ethereum https://eips.ethereum.org/EIPS/eip-4361
Author
Owner

@Bekacru commented on GitHub (Nov 17, 2024):

No plans to add SWIE support before v1, but if anyone wants to implement, open for a PR.

<!-- gh-comment-id:2480980378 --> @Bekacru commented on GitHub (Nov 17, 2024): No plans to add SWIE support before v1, but if anyone wants to implement, open for a PR.
Author
Owner

@rokitgg commented on GitHub (Dec 14, 2024):

Commenting here for awareness... hope to see a PR for this soon!

<!-- gh-comment-id:2543216140 --> @rokitgg commented on GitHub (Dec 14, 2024): Commenting here for awareness... hope to see a PR for this soon!
Author
Owner

@rajelmn commented on GitHub (Dec 30, 2024):

why wanna add SWIE ?

<!-- gh-comment-id:2565169590 --> @rajelmn commented on GitHub (Dec 30, 2024): why wanna add SWIE ?
Author
Owner

@rokitgg commented on GitHub (Feb 10, 2025):

Many decentralized applications are built upon NextJS and therefore, can get all the benefits of better-auth.

Would be amazing to have a natively-supported SignInWithEthereum plugin for the better-auth ecosystem, since as of now it's very tricky to put these two pieces together.

A native SIWE plugin would open the room for hundreds of dApps to use Better-Auth for a comfortable auth experience while remaining compliant with the ethos of signing in anonymously with an Ethereum wallet.

<!-- gh-comment-id:2646927770 --> @rokitgg commented on GitHub (Feb 10, 2025): Many decentralized applications are built upon NextJS and therefore, can get all the benefits of better-auth. Would be amazing to have a natively-supported SignInWithEthereum plugin for the better-auth ecosystem, since as of now it's very tricky to put these two pieces together. A native SIWE plugin would open the room for hundreds of dApps to use Better-Auth for a comfortable auth experience while remaining compliant with the ethos of signing in anonymously with an Ethereum wallet.
Author
Owner

@rokitgg commented on GitHub (Feb 12, 2025):

Can confirm that I'm currently working on it 😁

<!-- gh-comment-id:2653265087 --> @rokitgg commented on GitHub (Feb 12, 2025): Can confirm that I'm currently working on it 😁
Author
Owner

@8times4 commented on GitHub (Apr 8, 2025):

hey @rokitgg did you ever get to finish this? :)

<!-- gh-comment-id:2786123027 --> @8times4 commented on GitHub (Apr 8, 2025): hey @rokitgg did you ever get to finish this? :)
Author
Owner

@rokitgg commented on GitHub (May 7, 2025):

hey @rokitgg did you ever get to finish this? :)

I do yes, still drafting a PR and writing tests for it.

We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues

<!-- gh-comment-id:2859882250 --> @rokitgg commented on GitHub (May 7, 2025): > hey [@rokitgg](https://github.com/rokitgg) did you ever get to finish this? :) I do yes, still drafting a PR and writing tests for it. We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues
Author
Owner

@8times4 commented on GitHub (May 7, 2025):

hey @rokitgg did you ever get to finish this? :)

I do yes, still drafting a PR and writing tests for it.

We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues

Awesome!

btw you can replace siwe with viem pretty easily.
I have made a pugin since that works via viem without any issues.

Lmk if you want the gist for it.

<!-- gh-comment-id:2859922731 --> @8times4 commented on GitHub (May 7, 2025): > > hey [@rokitgg](https://github.com/rokitgg?rgh-link-date=2025-05-07T18%3A50%3A36.000Z) did you ever get to finish this? :) > > I do yes, still drafting a PR and writing tests for it. > > We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues Awesome! btw you can replace siwe with viem pretty easily. I have made a pugin since that works via viem without any issues. Lmk if you want the gist for it.
Author
Owner

@rokitgg commented on GitHub (May 7, 2025):

hey @rokitgg did you ever get to finish this? :)

I do yes, still drafting a PR and writing tests for it.
We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues

Awesome!

btw you can replace siwe with viem pretty easily. I have made a pugin since that works via viem without any issues.

Lmk if you want the gist for it.

Yeah I was thinking the same, viem probably does the work better. However viem bundle size is quite a lot when we only need the most basic/core SIWE functions so happy to discuss.

Draft PR is now open so happy to receive any suggestions/contributions for it. Cheers!

<!-- gh-comment-id:2860235825 --> @rokitgg commented on GitHub (May 7, 2025): > > > hey [@rokitgg](https://github.com/rokitgg?rgh-link-date=2025-05-07T18%3A50%3A36.000Z) did you ever get to finish this? :) > > > > > > I do yes, still drafting a PR and writing tests for it. > > We were just discussing on Discord about the issue of having the "siwe" npm package as a dependency or implementing it from scratch which is quite a bit of extra work tbh, so will update on this as progress continues > > Awesome! > > btw you can replace siwe with viem pretty easily. I have made a pugin since that works via viem without any issues. > > Lmk if you want the gist for it. Yeah I was thinking the same, viem probably does the work better. However viem bundle size is quite a lot when we only need the most basic/core SIWE functions so happy to discuss. Draft PR is now open so happy to receive any suggestions/contributions for it. Cheers!
Author
Owner

@based64-eth commented on GitHub (May 24, 2025):

will big tech let us merge this 👁️👁️

<!-- gh-comment-id:2906259432 --> @based64-eth commented on GitHub (May 24, 2025): will big tech let us merge this 👁️👁️
Author
Owner

@Kinfe123 commented on GitHub (Aug 11, 2025):

ref #2579

<!-- gh-comment-id:3175380707 --> @Kinfe123 commented on GitHub (Aug 11, 2025): ref #2579
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8103