You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there, I was wondering if there's any way to customize the Cookie Settings after log in? I tried to customize this via app.session so I can use these cookies to sub domain (e.g., *.mydomain.com), but after login the access_token and userId cookies is set to mydomain.com.
res.cookie('access_token',info.accessToken.id,{signed: req.signedCookies ? true : false,maxAge: 1000*info.accessToken.ttl,// Domain Option Heredomain: '.mydomain.com'});res.cookie('userId',user.id.toString(),{signed: req.signedCookies ? true : false,maxAge: 1000*info.accessToken.ttl,// And maybe another one here?domain: '.mydomain.com'});
The text was updated successfully, but these errors were encountered:
Hello there, I was wondering if there's any way to customize the Cookie Settings after log in? I tried to customize this via
app.session
so I can use these cookies to sub domain (e.g.,*.mydomain.com
), but after login theaccess_token
anduserId
cookies is set tomydomain.com
.The text was updated successfully, but these errors were encountered: