I built the Node.js API that uses Passport for authentication.
After authenticating the user, he can access the web services using BearerStrategy.
Now I would like to create a chat and allow access only for authenticated users. I found only one solution related to the token: jsonwebtoken , and I would like to know if there is a way to use Passport for this. Especially because I already implemented the Passport Bearer strategy.
thanks
source share