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

stacklok / toolhive-cloud-ui / 20930401680
81%

Build:
DEFAULT BRANCH: main
Ran 12 Jan 2026 06:24PM UTC
Jobs 1
Files 50
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

12 Jan 2026 06:23PM UTC coverage: 78.613% (+5.6%) from 72.998%
20930401680

push

github

web-flow
feat(auth): support postgreSQL db for auth in the docker compose command (#247)

* feat(auth): add PostgreSQL database layer for Better Auth

- Create db.ts with connection pool and query helpers
- Add init.sql for automatic schema creation on Docker startup
- Support for user, session, account, verification tables

* feat(docker): add auth-db service with auto-init schema

- Add PostgreSQL container for session storage
- Mount init.sql for automatic schema creation
- Configure DATABASE_URL for cloud-ui service

* feat(auth): add DATABASE_URL and OidcUserInfo type

- Add DATABASE_URL constant for PostgreSQL connection
- Add COOKIE_SECURE for environment-based cookie config
- Add OidcUserInfo interface for user info extraction

* feat(auth): add cookie chunking and getUserInfo helpers

- Implement cookie chunking for large OIDC tokens (stateless mode)
- Add getUserInfoFromIdToken for Azure AD claim extraction
- Add fetchUserInfoFromEndpoint for standard OIDC userinfo

* refactor(auth): support dual mode (database + stateless)

- Configure Better Auth for database or cookie mode based on DATABASE_URL
- Add custom getUserInfo handler for Azure AD compatibility
- Refactor token refresh to use db.ts helpers
- Support both database and cookie-based token storage

* feat(auth): update actions and routes for dual mode

- Update refresh-token route for database/cookie modes
- Add clearOidcTokenAction for stateless logout
- Update auth-client signOut for cookie cleanup

* test(auth): update tests for db.ts refactoring

- Update log message assertions for [DB] and [Token] prefixes
- Import refreshAccessToken from token.ts instead of auth.ts

* chore(deps): add pg for PostgreSQL session storage

* docs: update README with Docker Compose auth-db and configuration options

- Add DATABASE_URL to optional environment variables
- Document all Docker Compose services including auth-db
- Add section for external API configuration
- Document configuration combinations ta... (continued)

258 of 338 branches covered (76.33%)

Branch coverage included in aggregate %.

178 of 226 new or added lines in 7 files covered. (78.76%)

6 existing lines in 2 files now uncovered.

422 of 527 relevant lines covered (80.08%)

11.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
89.11
-10.89% src/lib/auth/utils.ts
9
56.76
26.14% src/lib/auth/auth.ts
16
68.52
-24.81% src/lib/auth/token.ts
17
61.43
-38.57% src/lib/auth/cookie.ts

Uncovered Existing Lines

Lines Coverage ∆ File
2
89.11
-10.89% src/lib/auth/utils.ts
4
68.52
-24.81% src/lib/auth/token.ts
Jobs
ID Job ID Ran Files Coverage
1 20930401680.1 12 Jan 2026 06:24PM UTC 50
78.61
GitHub Action Run
Source Files on build 20930401680
  • Tree
  • List 50
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20930401680
  • b86adfd2 on github
  • Prev Build on main (#20789330531)
  • Next Build on main (#21070903551)
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