Removed 'as any' in jackson.ts (#7175)
This commit is contained in:
1 parent
38be2bef9a
commit
f8558e16e8
1 file changed
+10
-3
@@ -1,9 +1,10 @@
|
||||
import jackson, {
|
||||
import type {
|
||||
IConnectionAPIController,
|
||||
IOAuthController,
|
||||
JacksonOption,
|
||||
ISPSAMLConfig,
|
||||
} from "@boxyhq/saml-jackson";
|
||||
import jackson from "@boxyhq/saml-jackson";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
|
||||
@@ -27,10 +28,16 @@ let connectionController: IConnectionAPIController;
|
||||
let oauthController: IOAuthController;
|
||||
let samlSPConfig: ISPSAMLConfig;
|
||||
|
||||
const g = global as any;
|
||||
const g = global;
|
||||
|
||||
declare global {
|
||||
var connectionController: IConnectionAPIController | undefined;
|
||||
var oauthController: IOAuthController | undefined;
|
||||
var samlSPConfig: ISPSAMLConfig | undefined;
|
||||
}
|
||||
|
||||
export default async function init() {
|
||||
if (!g.connectionController || !g.oauthController) {
|
||||
if (!g.connectionController || !g.oauthController || !g.samlSPConfig) {
|
||||
const ret = await jackson(opts);
|
||||
|
||||
connectionController = ret.connectionAPIController;
|
||||
|
||||
Reference in new issue
Block a user