• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth-js / 14272969242 / 2
81%
master: 81%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2025 07:45PM UTC
Files 14
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Apr 2025 07:43PM UTC coverage: 49.069% (-4.8%) from 53.819%
14272969242.2

push

github

web-flow
feat: add `signInWithWeb3` with solana (#1037)

Adds `signInWithWeb3` which allows [sign in with
Solana](https://github.com/supabase/auth/pull/1918).

**Example usage**

First [connect to the user's
wallet](https://solana.com/developers/courses/intro-to-solana/interact-with-wallets)
then:

```tsx
const wallet = useWallet()

<Button onClick={() => {
  await supabase.auth.signInWithWeb3({ chain: 'solana', wallet, statement: "Custom message" })
}}>
  Sign in with Solana
</Button>
```

It also works without Wallet Standard, at least with Phantom, Solflare
and Brave by reading the `window.solana` object or you can custom send a
wallet object that satisfies the `signIn()` or `signMessage()` APIs.

Additionally you can sign the message yourself and send it via the raw
API:

```typescript
await supabase.auth.signInWithWeb3({
  chain: 'solana',
  message: 'supabase.com wants you to sign in with your Solana account:\n...',
  signature: signatureUint8Array,
})
```

472 of 1204 branches covered (39.2%)

Branch coverage included in aggregate %.

872 of 1535 relevant lines covered (56.81%)

46.82 hits per line

Source Files on job 14272969242.2
  • Tree
  • List 14
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14272969242
  • cff5bcb8 on github
  • Prev Job for on master (#14046721457.1)
  • Next Job for on master (#14691864778.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc