Skip to content

Commit 167c422

Browse files
author
Rachel Macfarlane
committed
Handle no github auth config
1 parent 2e66ecb commit 167c422

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

extensions/github-authentication/src/common/clientRegistrar.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ export class Registrar {
1717
private _config: ClientConfig;
1818

1919
constructor() {
20-
this._config = require('./config.json') as ClientConfig;
20+
try {
21+
this._config = require('./config.json') as ClientConfig;
22+
} catch (e) {
23+
this._config = {
24+
OSS: {},
25+
INSIDERS: {}
26+
};
27+
}
2128
}
2229
getClientDetails(product: string): ClientDetails {
2330
let details: ClientDetails | undefined;

0 commit comments

Comments
 (0)