mongodb-js/connect-mongodb-session

Can't find stored session after refresh

gimtwi opened this issue · 1 comments

Hello, I'm trying to create a simple logging app with express-session, connect-mongodb-session and apollo-server-express.
1
2

Here is my login function:
3

Here I'm finding session from the context to use it for protected routes in UI:
4

It works on GraphQL Playground:
5

And I can store cookie on UI as well:
6

Here is UI code:
7
8

The problem is that after refresh, cookie does not diaper, but ItIsMe querie does not work as intended.
Meaning when I'm requesting ItIsMe querie it returns null unlike GraphQL Playground behavior
8

If anyone knows where the problem could be, please help me out. Thanks.