Node Passport invitation strategy
问题 I’m creating a multi-user app where only the admin can add new users through an invitation. I looked at Passport but I don’t see a way to implement a kind of “invitation strategy” (similar to Devise in RoR); any ideas ? 回答1: The Strategy is how you authenticate someone, where Invitations are about how users register. They're two different areas of concern in your app. What I do is have the Invitation be created by the admin and so on, and when the user clicks on the link to their invitation