Passport-js How to create a custom strategy
问题 I am looking to create my own strategy. I have client_id , client_secret and related meta data. I also know the flow of execution. So I want to create my own strategy and add my custom logic for authentication. I looked at passport-strategy, but I am not understanding how to implement my own strategy. Can anyone explain it? 回答1: You have two options here: If you have a custom logic for authentication you don't really need to create your own strategy... you can use the passport-custom strategy