mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
OIDCStrategy: fix constructor use of 'withRequest'
per [README section 5.1.1.3](https://github.com/AzureAD/passport-azure-ad#5113-verify-callback): > If you set `passReqToCallback` option to `false` you can [use the `VerifyOIDCFunction` callback signature] > If you set `passReqToCallback` option to true you can [use the `VerifyOIDCFunctionWithReq` callback signature]
This commit is contained in:
+2
-2
@@ -55,9 +55,9 @@ export type VerifyOIDCFunctionWithReq =
|
||||
export class OIDCStrategy implements passport.Strategy {
|
||||
constructor(
|
||||
options: IOIDCStrategyOptionWithRequest,
|
||||
verify: VerifyOIDCFunction
|
||||
verify: VerifyOIDCFunctionWithReq
|
||||
);
|
||||
constructor(options: IOIDCStrategyOption, verify: VerifyOIDCFunctionWithReq);
|
||||
constructor(options: IOIDCStrategyOption, verify: VerifyOIDCFunction);
|
||||
|
||||
name: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user