File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 17
17
import * as validator from './validator' ;
18
18
import * as jwt from 'jsonwebtoken' ;
19
19
import { HttpClient , HttpRequestConfig , HttpError } from '../utils/api-request' ;
20
-
21
- import http = require( 'http' ) ;
20
+ import { Agent } from 'http' ;
22
21
23
22
export type Dictionary = { [ key : string ] : any }
24
23
@@ -39,7 +38,7 @@ export class UrlKeyFetcher implements KeyFetcher {
39
38
private publicKeys : { [ key : string ] : string } ;
40
39
private publicKeysExpireAt : number ;
41
40
42
- constructor ( private clientCertUrl : string , private readonly httpAgent ?: http . Agent ) {
41
+ constructor ( private clientCertUrl : string , private readonly httpAgent ?: Agent ) {
43
42
if ( ! validator . isURL ( clientCertUrl ) ) {
44
43
throw new Error (
45
44
'The provided public client certificate URL is an invalid URL.' ,
You can’t perform that action at this time.
0 commit comments