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

silvermine / apigateway-utils / 44 / 1
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: pb/upgrade-node-16
DEFAULT BRANCH: master
Ran 26 Jan 2018 11:12PM UTC
Files 8
Run time 32s
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

26 Jan 2018 11:10PM UTC coverage: 100.0%. Remained the same
44.1

push

travis-ci

jthomerson
BREAKING: Expose JWT validation, change validateAuthorizationHeader

This commit exposes JWT validation as a utility, but in doing so also introduces a
**breaking change** that allows `JWTSecuredRequest.validateAuthorizationHeader` to return
multiple errors.

The format before was:

```
{ isValid: true }
// or:
{ isValid: false, msg: 'User-visible message', err: 'More details for developer' }
```

The format now is:

```
{ errors: [], token: {} }; // (token is the decoded JWT object)
// or:
{
   errors: [ { msg: 'User-visible message', err: 'More details for developer' } ],
   token: {},
}
```

In this new format: there may be multiple errors; Also, token is the decoded JWT, and is
undefined if the JWT could not be decoded.

211 of 211 relevant lines covered (100.0%)

24.53 hits per line

Source Files on job 44.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 44
  • Travis Job 44.1
  • 56f19bbe on github
  • Prev Job for on jwt_validation_utility (#38.2)
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