How can I use passportjs and reactjs together?

后端 未结 4 1577
旧巷少年郎
旧巷少年郎 2021-02-05 08:06

I have 3 views, (Home, signup, login)made in reactJs, I want to use passport in my project but I dont know how to do it, I have passport configurated and it url is working.

4条回答
  •  庸人自扰
    2021-02-05 09:04

    You can Use passport.js with node.js and also can use jsonwebtoken ,i personally use that very usefull simple to code and pretty secure and easily can use to frontend with react or any other frontend framework . The best thing is backend :-> node.js + passport.js + jsonwebtoken frontend :-> react/ any other framework + redux it works really awesome.

提交回复
热议问题