nodebb-plugin-session-sharing icon indicating copy to clipboard operation
nodebb-plugin-session-sharing copied to clipboard

Enhancement: API to create a session shared user

Open uplift opened this issue 5 years ago • 0 comments

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.

uplift avatar Jul 01 '19 12:07 uplift