Ask Your Question
4

What is the problem with Node.js and TypeScript relating to the error message "Argument type Strategy is not assignable to parameter type Strategy" that involves passport?

asked 2021-10-04 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-05 09:00:00 +0000

lalupa gravatar image

The problem arises because TypeScript expects a specific type for the Strategy parameter, but the argument being passed does not match that type. This error message may be created due to a type mismatch between the passport strategy being used and the TypeScript type definitions for that strategy or a syntax error in the code related to the strategy. It is necessary to ensure that the correct types are being used and that the syntax is correct to resolve this error message.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-04 11:00:00 +0000

Seen: 9 times

Last updated: Sep 05 '22