All files / src index.js

94.12% Statements 16/17
100% Branches 0/0
0% Functions 0/1
94.12% Lines 16/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 232x   2x 2x 2x 2x 2x   2x       2x 2x 2x 2x   2x 2x 2x 2x 2x  
import { JwksClient } from './JwksClient';
 
import * as errors from './errors';
import { hapiJwt2Key, hapiJwt2KeyAsync } from './integrations/hapi';
import { expressJwtSecret } from './integrations/express';
import { koaJwtSecret } from './integrations/koa';
import { passportJwtSecret } from './integrations/passport';
 
module.exports = (options) => {
  return new JwksClient(options);
};
 
module.exports.ArgumentError = errors.ArgumentError;
module.exports.JwksError = errors.JwksError;
module.exports.JwksRateLimitError = errors.JwksRateLimitError;
module.exports.SigningKeyNotFoundError = errors.SigningKeyNotFoundError;
 
module.exports.expressJwtSecret = expressJwtSecret;
module.exports.hapiJwt2Key = hapiJwt2Key;
module.exports.hapiJwt2KeyAsync = hapiJwt2KeyAsync;
module.exports.koaJwtSecret = koaJwtSecret;
module.exports.passportJwtSecret = passportJwtSecret;