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):
then make sure key
in app set express.sid
, value use, , secrets match.
Comments
Post a Comment