Skip to content

Commit e5b62f3

Browse files
committed
Fix http import
1 parent 7a73b1e commit e5b62f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/jwt.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
import * as validator from './validator';
1818
import * as jwt from 'jsonwebtoken';
1919
import { HttpClient, HttpRequestConfig, HttpError } from '../utils/api-request';
20-
21-
import http = require('http');
20+
import { Agent } from 'http';
2221

2322
export type Dictionary = {[key: string]: any}
2423

@@ -39,7 +38,7 @@ export class UrlKeyFetcher implements KeyFetcher {
3938
private publicKeys: { [key: string]: string };
4039
private publicKeysExpireAt: number;
4140

42-
constructor(private clientCertUrl: string, private readonly httpAgent?: http.Agent) {
41+
constructor(private clientCertUrl: string, private readonly httpAgent?: Agent) {
4342
if (!validator.isURL(clientCertUrl)) {
4443
throw new Error(
4544
'The provided public client certificate URL is an invalid URL.',

0 commit comments

Comments
 (0)