apps/www/_blog/2025-10-03-login-with-solana-ethereum.mdx
Today we're announcing support for Web3 logins using Ethereum and Solana. This has been one of the historically most requested features for Supabase.
It's all based on the widely adopted Sign in with Ethereum standard (EIP-4361), which both Ethereum and Solana off-chain wallet authentication is based on. This protocol is widely adopted across all of the popular wallet applications (both software and hardware) today, so building a Web3 application on top of Supabase has never been easier.
We wanted to make it simple. The Sign in with Ethereum standard defines a particular message structure, one that looks like so:
example.com wants you to sign in with your Ethereum account:
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
I accept the ExampleOrg Terms of Service: <https://example.com/tos>
URI: <https://example.com/login>
Version: 1
Chain ID: 1
Nonce: 32891756
Issued At: 2021-09-30T16:25:24Z
Resources:
- <https://example.com/my-web2-claim.json>
It's interpreted both by the wallet application, which presents a secure login confirmation dialog, while also being validated by Supabase Auth before issuing a user session.
Most of these details are already handled for you by the Supabase JavaScript SDK, so it's really as simple as calling this in your Web3 app:
await supabase.auth.signInWithWeb3({
chain: 'ethereum', // or 'solana'
statement: 'I <3 Supabase!',
})
The API is powerful enough to support more modern approaches to building Web3 applications such as using the Solana Wallet Adapter system or the Ethereum Wallet Discovery Mechanism.
You can configure these on the Supabase Dashboard, or in the Supabase CLI:
[auth.web3.solana]
enabled = true
[auth.web3.ethereum]
enabled = true
Don't forget to configure rate-limits and CAPTCHA, as Web3 apps are usually more prone to abuse by bots:
[auth.rate_limit]
# Number of Web3 logins that can be made in a 5 minute interval per IP address.
web3 = 30
[auth.captcha]
enabled = true
provider = "hcaptcha" # or other supported providers
secret = "0x0000000000000000000000000000000000000000"
At Supabase we cherish our community and our contributors. For this feature, we asked our community for help by co-sponsoring a bounty with the Solana Foundation. We asked them to help us find a contributor who knows the ecosystem well to help us launch:
And we found someone great!
<Quote img="omar-bewinxed.jpg" caption="Omar (Bewinxed), Supabase contributor and author of deauth.xyz">Being in the Web3 space, specifically in Solana since 2021, I've used Supabase on a few projects. So as soon as I saw the tweet saying Supabase needed help implementing Sign in with Solana, I had to jump in!
It was interesting seeing the difference when building for Supabase scale, as opposed to building small personal projects. We put in a lot of effort to provide the Web3 community with the great DX Supabase is known for, security and standards compliance.
</Quote>Once we made Sign in with Solana available in April, we decided to further our collaboration and continue working on the Sign in with Ethereum implementation. Omar has continued working with us on other exciting features coming soon!
Real-world use cases for Web3 authentication are already here. Developers are using wallet-based sign-in to power:
You can get started right now:
We canโt wait to see what you build.