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

vocdoni / saas-backend / 21478422804
63%

Build:
DEFAULT BRANCH: main
Ran 29 Jan 2026 12:41PM UTC
Jobs 1
Files 84
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

29 Jan 2026 12:37PM UTC coverage: 63.363% (+0.2%) from 63.181%
21478422804

push

github

emmdim
refactor(oauth): allow multiple providers

- Adds a migration to make the user.password field non mandatory
- Also creates the "oauth" object field for any existing user
- The oauth login/signup endpoint now expects a "provider" key with the
  provider used (either google, facebook or github right now)
- Added some extra useful information to the provider because why not
- The down migration takes into consideration possible existing OAuth
  users with the new format, moving their new password to the old
  "password" field, to give some kind of backwards compatibility (and
  also to not break the migrations)

refs #286

chore(oauth): upgrade migration ids

refs #286

feat(oauth): add link/unlink endpoints

- Added a hasPassword field to the profile (/me) response
- Also added a providers field to the same profile response with an
  array of already linked providers

refs #286

chore(swagger): update

refs #286

chore(types): don't omit providers, it's useful as an empty array

refs #286

chore(test): fix test anti-pattern

refs #286

chore(user): has password field should not be omited

refs #286

fix(oauth): properly check error before defering

refs #286

fix(oauth): disallow linking already linked accounts

refs #286

refs #286

refs #286

refs #286

refs #286

refs #286

refs #286

236 of 342 new or added lines in 6 files covered. (69.01%)

12 existing lines in 1 file now uncovered.

7122 of 11240 relevant lines covered (63.36%)

37.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.71
0.58% db/users.go
4
95.06
migrations/0010_update_user_validator.go
9
41.0
-0.17% api/users.go
39
51.25
migrations/0009_add_oauth_providers.go
53
62.26
3.53% api/auth.go

Uncovered Existing Lines

Lines Coverage ∆ File
12
86.46
0.14% db/helpers.go
Jobs
ID Job ID Ran Files Coverage
1 21478422804.1 29 Jan 2026 12:41PM UTC 84
63.36
GitHub Action Run
Source Files on build 21478422804
  • Tree
  • List 84
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7f679eac on github
  • Prev Build on main (#21214283408)
  • Next Build on main (#21681508995)
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