Cross Domain Authentication with node.js and express-session
<p>I'm using Passport.js for auth. Session Express-Session and Mongo-Connect to store it. I've got a problem. It stopped working. All the time everything was fine. No it's not. This is the code:</p>

<pre><code>app.use(session({
    secret: 'secret',
    resave: true,
    // unset: 'destroy',
    domain: '.domain.com',
    saveUninitialized: false,
    cookie:  {
        // path: '/',
        domain: '.domain.com',
        maxAge: 24 * 6 * 60 * 10000
    },
    store: new MongoStore({url: config.db, autoReconnect:true})
}))
</code></pre>

<p>The auth process works fine, but it's not working anymore for cross domains.</p>

<p>Anyone got an idea? Checked for updates but didn't find anything.</p>