简体   繁体   中英

How to connect MongooseIM with Node.js?

I'm thinking about developing an application with React Native that has chat functionality and I've thought about using NodeJS and MongooseIM for the backend. My idea is to have the application data, user data and a "social login" (OAuth 2.0) implemented on my server (NodeJS) and establish a connection with a MongooseIM server that reuses the previous login and user metadata.

Is it possible to make that connection? How can I do it? Thank you!

您可以在登录服务器(或任何其他OAuth授权服务器)后向用户授予JWT令牌,并使用MongooseIM的JWT auth方法访问XMPP层。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM