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

supabase / auth / 35625721653
72%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2026 04:33PM UTC
Jobs 1
Files 208
Run time 1min
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

21 Sep 2026 04:27PM UTC coverage: 71.673% (+0.001%) from 71.672%
35625721653

push

github

web-flow
fix: only trigger after-user-created hook on account creation (#2656)

## What kind of change does this PR introduce?

Bug fix.

## What is the current behavior?

The external OAuth callback sets `createdUser = true` unconditionally,
discarding the `models.AccountLinkingDecision`. That branch handles
every OAuth sign-in, so `after-user-created` also fires for
`AccountExists` (returning user) and `LinkAccount` (new identity on an
existing user). Hook side effects therefore repeat on every sign-in, and
since the hook's error propagates out of the callback, a hook that
rejects a duplicate user breaks all OAuth sign-ins.

## What is the new behavior?

`createdUser` is gated on `decision == models.CreateAccount`, matching
the existing call sites in `token_oidc.go`, `web3.go` and `samlacs.go`.

## Additional context

Two regression tests in `ExternalTestSuite` cover the `AccountExists`
and `LinkAccount` paths.

3 of 3 new or added lines in 1 file covered. (100.0%)

16669 of 23257 relevant lines covered (71.67%)

496.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35625721653.1 21 Sep 2026 04:33PM UTC 208
71.67
GitHub Action Run
Source Files on build 35625721653
  • Tree
  • List 208
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 64cfdf22 on github
  • Prev Build on master (#35622283244)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc