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

sgerrand / ex_teya / 36423980421
100%

Build:
DEFAULT BRANCH: main
Ran 28 Sep 2026 12:46PM UTC
Jobs 1
Files 25
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

28 Sep 2026 12:46PM UTC coverage: 100.0%. Remained the same
36423980421

push

github

web-flow
fix(auth): send each token to the host its credentials started with (#56)

* fix(http): resolve the API's base URL once, when the application starts

The auth processes read their token URL when the application started,
but every request read :environment and :base_url afresh. A change while
running therefore sent API calls to the new environment's host with a
token from the old one, which Teya refuses; the docs could only warn
against it. Application.start/2 now resolves the base URL alongside the
token URLs and stores it, and every request uses that. A change takes
effect, for host and token together, on the next start.

An :environment the library does not know now stops the application at
boot, even with no credentials configured, rather than at the first
request.

* fix(auth): send each token to the host its credentials started with

The first fix stored one base URL for the whole application at boot,
beside each auth process's own token URL: two snapshots kept in step
only by being taken together. A second start of the running application
replaced the stored URL while the auth processes kept their tokens, an
auth process started later read the live token URL against the boot
URL, the stored URL outlived the application, and an unknown environment
now stopped apps that make no requests, such as webhook-only ones.

Each %Teya.Config{} now resolves its base URL with its token URL, when
its auth process starts, and Auth.base_url/1 returns it. Client and the
POSLink streams send a request to the host of the set whose token it
carries. Host and token cannot come apart, whatever changes while the
application runs, and nothing is stored globally. A request with a
caller's own token, such as ePOS registration, and a set with no auth
process use the base URL as configured now.

* fix(auth): hand out a token and its host in one reply

Requests asked the auth process for a token, then separately for its
host, and the host lookup fell back to the live config... (continued)

61 of 61 new or added lines in 9 files covered. (100.0%)

498 of 498 relevant lines covered (100.0%)

54.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36423980421.1 28 Sep 2026 12:46PM UTC 25
100.0
GitHub Action Run
Source Files on build 36423980421
  • Tree
  • List 25
  • Changed 9
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36423980421
  • 9fb01aa3 on github
  • Prev Build on main (#36347066457)
  • Next Build on main (#36424251167)
  • 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