Azure-AD-Back-Client icon indicating copy to clipboard operation
Azure-AD-Back-Client copied to clipboard

issue

Open ashish1014 opened this issue 5 years ago • 0 comments

getting below issue at the time of server start

src/app.ts:37:31 - error TS2769: No overload matches this call. Overload 1 of 2, '(options: IOIDCStrategyOptionWithRequest, verify: VerifyOIDCFunctionWithReq): OIDCStrategy', gave the following error. Argument of type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' is not assignable to parameter of type 'IOIDCStrategyOptionWithRequest'. Property 'passReqToCallback' is missing in type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' but required in type 'IOIDCStrategyOptionWithRequest'. Overload 2 of 2, '(options: IOIDCStrategyOptionWithoutRequest, verify: VerifyOIDCFunction): OIDCStrategy', gave the following error. Argument of type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' is not assignable to parameter of type 'IOIDCStrategyOptionWithoutRequest'.
Property 'passReqToCallback' is missing in type '{ identityMetadata: string; clientID: string; responseType: "code id_token"; responseMode: "form_post"; redirectUrl: string; allowHttpForRedirectUrl: true; clientSecret: string; validateIssuer: true; ... 7 more ...; cookieEncryptionKeys: { ...; }[]; }' but required in type 'IOIDCStrategyOptionWithoutRequest'.

37 passport.use(new OIDCStrategy({ ~ 38 identityMetadata: passconfig.creds.identityMetadata, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 58 //clockSkew: 0 ~~~~~~~~~~~~~~~~ 59 }, ~

node_modules/@types/passport-azure-ad/oidc-strategy.d.ts:22:5 22 passReqToCallback: true; ~~~~~~~~~~~~~~~~~ 'passReqToCallback' is declared here. node_modules/@types/passport-azure-ad/oidc-strategy.d.ts:26:5 26 passReqToCallback: false; ~~~~~~~~~~~~~~~~~ 'passReqToCallback' is declared here.

Found 1 error.

ashish1014 avatar Aug 03 '21 06:08 ashish1014