I'm fully aware that normally, with express-session, the session is returned with each request and there's no need to try to manage sessions. However, imagine for a moment, you have multiple applications each with different jobs, but you want your authentication to work with all your apps. So the problem there is, a session created on one app will not be magically replicated on all your other apps.
So what do you have to do? Presumably, you would need to query the app which created your sessions and get the session using it's ID. And you would store the session ID on the client via local storage.
I'm unable to find anything that would support this architecture (Micro-Apps instead of Monolithic).
There's some documentation in the readme of express-session which explains their store a bit but not how to use it. As an example, it states you can get the session like this:
store.get(sid, callback)
However, the only store available is a class called "Store". There's no clear indication in the docs on how to get/use this.
The docs go on to say something about "compatible session stores". Does this mean express session doesn't have it's own store, what are they trying to say in this readme? It's very cryptic and could have been written better...