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

silvermine / apigateway-utils / 47
100%
master: 99%

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

pending completion
47

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%)

49.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47.1 26 Jan 2018 11:14PM UTC 0
100.0
Travis Job 47.1
2 47.2 26 Jan 2018 11:14PM UTC 0
100.0
Travis Job 47.2
Source Files on build 47
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #47
  • 56f19bbe on github
  • Next Build on errors_and_jwt_validation (#46)
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