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

supabase / auth / 15169693367
70%
master: 69%

Build:
Build:
LAST BUILD BRANCH: cemal/feat-add-oidc-provider-cache
DEFAULT BRANCH: master
Ran 21 May 2025 06:29PM UTC
Jobs 1
Files 140
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 May 2025 06:17PM UTC coverage: 70.003% (-0.01%) from 70.016%
15169693367

Pull #2032

github

Chris Stockton
feat: add before user created hook to pkg api

This commit explores one possible implementation of this hook by:
- Adding a `triggerBeforeUserCreated` to the *API object
- Updating `signupNewUser` to accept an `*http.Request` param
- Updating the following files with param r:
    - anonymous.go
    - external.go
    - invite.go
    - mail.go
    - signup.go
- Calling `triggerBeforeUserCreated` from `signupNewUser`

Pros:
- Very minor change
- Requires minimal testing
- This pattern will be easy to replicate for future hooks as well

Cons:
- Requires calling the hook in a trasaction, something we do today
  but want to move away from over time.

Note:
I've omitted tests from this commit but they have already been
written in a previous pr.
Pull Request #2032: feat: hooks round 5 (Option 1) - add before-user-created hook

11 of 17 new or added lines in 6 files covered. (64.71%)

11134 of 15905 relevant lines covered (70.0%)

64.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
56.64
0.0% internal/api/mail.go
2
66.67
-0.33% internal/api/signup.go
3
57.14
internal/api/hooks.go
Jobs
ID Job ID Ran Files Coverage
1 15169693367.1 21 May 2025 06:29PM UTC 140
70.0
GitHub Action Run
Source Files on build 15169693367
  • Tree
  • List 140
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2032
  • PR Base - master (#15141341085)
  • Delete
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

© 2026 Coveralls, Inc