如何将passportjs和反应物一起使用?

时间:2022-09-08 20:31:40

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.

我有3个视图,(Home, signup, login)都是用反应堆js做的,我想在我的项目中使用passport,但是我不知道怎么做,我已经配置了passport,并且它的url还在工作。

What can I do to manage the session and the user data like we do in ejs or jade?

如何像在ejs或jade中那样管理会话和用户数据?

1 个解决方案

#1


1  

Have a look at the basic example here

看一下这里的基本示例

#1


1  

Have a look at the basic example here

看一下这里的基本示例