File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { defaultResponderForAppDir } from "app/api/defaultResponderForAppDir" ;
22import { parseRequestData } from "app/api/parseRequestData" ;
3+ import * as jose from "jose" ;
34import type { NextRequest } from "next/server" ;
45import { NextResponse } from "next/server" ;
6+ import * as dummy from "openid-client" ;
57import { uuid } from "short-uuid" ;
68
79import jackson from "@calcom/features/ee/sso/lib/jackson" ;
810import type { OAuthTokenReq } from "@calcom/features/ee/sso/lib/jackson" ;
911import logger from "@calcom/lib/logger" ;
1012
1113async function handler ( req : NextRequest ) {
14+ // Need these imports to fix import errors with jackson
15+ // https://github.com/ory/polis/blob/main/pages/api/import-hack.ts
16+ const unused = dummy ; // eslint-disable-line @typescript-eslint/no-unused-vars
17+ const unused2 = jose ; // eslint-disable-line @typescript-eslint/no-unused-vars
1218 const { oauthController } = await jackson ( ) ;
1319 const log = logger . getSubLogger ( { prefix : [ "[SAML token]" ] } ) ;
1420
Original file line number Diff line number Diff line change 114114 "next-themes" : " ^0.2.0" ,
115115 "nodemailer" : " ^6.7.8" ,
116116 "nuqs" : " ^1.20.0" ,
117+ "openid-client" : " 6.5.0" ,
117118 "otplib" : " ^12.0.1" ,
118119 "posthog-js" : " ^1.164.1" ,
119120 "posthog-node" : " ^4.2.0" ,
You can’t perform that action at this time.
0 commit comments