julianlam / nodebb-plugin-session-sharing

Allows login sessions from your app to persist in NodeBB
MIT License
88 stars 65 forks source link

Enhancement: API to create a session shared user #77

Open uplift opened 5 years ago

uplift commented 5 years ago

I have a use case where we need to create the user in the forum database when they login to our website so we can have a forum uid for API requests. I thought about just using the create user API (write-api plugin) but then I'd lose the session-sharing lookup ability to check the forum ID based on their website ID.

Would it be possible to add an API that basically takes the request body instead of the cookie body and run that through a modified version of the process function? I'll send a rough PR with something I think should work.