I have a question regarding cookies. Here I’m using apollo-server-express, express-session and redis for all of the authentication process. My problem with it is that in apollo studio my cookie, which is created inside the UserResolver under the mutation login, isn’t shown there. Hence why the query me returns null. Is also worth mentioning I’m not getting any errors while doing all of this.
For better understanding I’ll leave some screenshots below.
I hope someone can help me out here. Thanks in advance.
P.S. Sorry for the cluttered screenshots. Could only attach one file because I just created this account.
- main function = index file
- login mutation = logs in user and should create a cookie
- me query = should check if user is logged in
- (rest of the screenshots are executions of login, me and some settings)