How can I use passportjs and reactjs together?

后端 未结 4 1562
旧巷少年郎
旧巷少年郎 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 08:56

    You'll need passport, but in a backend environment with users authentication. Something with node.js+express.js+passport+someDB.

    Probably a bit more that what you're asking for, but you can use feathersjs that comes with these built in modules.

    With FeathersCli you get user/pass authentication with JWToken in no time by running (after installed): feathers generate app then feathers generate authentication

提交回复
热议问题