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

supabase / auth / 8447621698
70%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2024 06:34AM CUT
Jobs 1
Files 115
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

27 Mar 2024 06:30AM CUT coverage: 65.102%. First build
8447621698

push

github

web-flow
feat: add custom sms hook (#1474)

## What kind of change does this PR introduce?

Allows devs to use a Custom SMS Provider via a HTTP Hook. SQL Hooks are
not supported at this time as it requires significantly more effort to
invoke a Hook via `pg_net` and handle errors as compared to using
HTTP/HTTPS.

HTTP Hook invocation is done via the
[standardwebhooks](www.standardwebhooks.com) library for symmetric
hooks. Asymmetric hooks are being finalized by the committee and support
will be added shortly.


The following changes are being made from the internal RFC:
- [x] Hooks have a timeout of 5 seconds instead of 15 seconds so as not
to run for too long
- [x] Hooks have a size limit of 20kb. This is not stated in internal
RFC but is part of the recommendations under the standard webhooks RFC.
- [x] We allow hooks using the `http` protocol . This is to support
local development. Restriction to https can be done on the dashboard
page for connecting a hook.
- [x] Add log statements where relevant and write proper error messages
- [x] Add more Gock tests

---------

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

81 of 174 new or added lines in 12 files covered. (46.55%)

8031 of 12336 relevant lines covered (65.1%)

59.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
68.26
internal/api/otp.go
1
51.25
internal/api/reauthenticate.go
1
65.63
internal/api/signup.go
1
63.8
internal/api/user.go
2
51.54
internal/api/resend.go
9
40.0
internal/hooks/auth_hooks.go
12
75.82
internal/api/phone.go
14
53.66
internal/crypto/crypto.go
52
57.14
internal/api/hooks.go
Jobs
ID Job ID Ran Files Coverage
1 8447621698.1 27 Mar 2024 06:34AM CUT 115
65.1
GitHub Action Run
Source Files on build 8447621698
  • Tree
  • List 115
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
internal/observability/logging.go101 65 0 65 0.0
0.0
internal/api/provider/linkedin_oidc.go83 51 0 51 0.0
0.0
internal/api/token_oidc.go239 169 0 169 0.0
0.0
internal/observability/cleanup.go28 13 0 13 0.0
0.0
internal/api/listener.go46 29 0 29 0.0
0.0
internal/api/cleanup.go28 13 0 13 0.0
0.0
internal/api/provider/slack.go93 60 0 60 0.0
0.0
internal/api/provider/errors.go49 27 0 27 0.0
0.0
internal/api/provider/spotify.go104 62 0 62 0.0
0.0
internal/observability/profiler.go85 60 0 60 0.0
Showing 1 to 10 of 115 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next
  • ►
    65.1
    internal/
  • Back to Repo
  • 0f6b29a4 on github
  • Next Build on master (#8450602169)
  • 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

© 2025 Coveralls, Inc