javascript - Sharing session between two node apps using SSO -


i have existing website built using express , node.js , have incorporate nodebb forum in website again different node application, using facebook login both of them have login them seperately 1 one(using same facebook app both). want is,

1.login via fb or sso in main site , user should logged in forum via same automatically.

2.how can integrate nodebb in website , feel doesn't change, looks on different website, need tips integrate nodebb in existing website.

how can achieve these two?

(hey there @vipul, nodebb dev here) when establish express session app, setting cookie's domain to?

;domain=domain (e.g., 'example.com', '.example.com' (includes subdomains), 'subdomain.example.com') if not specified, defaults host portion of current document location.

-- mdn

you'll want set .your-domain.com, , likewise nodebb (do in "settings/advanced" section):

... in nodebb

then make sure key in app set express.sid, value use, , secrets match.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -