Can we pass only username in payload for nodebb-plugin-session-sharing
Solved
NodeBB Plugins
-
Hi all,
@julian,I have implemented Session Sharing for NodeBB in my application.
I wanted to know if I can pass only the UserName in the payload? I ask this because the user IDs of my application's users are different from NodeBB uids. If I don't provide uid in payload, the plugin doesn't work.
Please let me know how to achieve this.
Thanks.
-
I believe you're supposed to provide the user ID of your application, and the session sharing plugin stores a map of NodeBB uids to the uids in your app.
-
-
-
@pitaj That's correct. You can pass other data (such as username, email, other profile fields), and it will update the local account created for you, but the
remoteId
is required so it can maintain that mapping.The uids need not match between applications.
Copyright © 2024 NodeBB | Contributors