graphql/yoga-server/tutorial/advanced/01-authentication #2504
Replies: 2 comments 2 replies
-
I'm unable to save cookies containing a JWT token after a user has been authenticated using a mutation. I've tried using both HTTP and Express, but I can only seem to read cookies and not write them. I'm using Yoga GraphQL version 3, and my goal is to store the cookie in response to a valid login with a user's credentials. |
Beta Was this translation helpful? Give feedback.
-
In case your application needs to deliver also public pages without authentication then I would suggest not to perform the user lookup in the database within the createContext function. |
Beta Was this translation helpful? Give feedback.
-
graphql/yoga-server/tutorial/advanced/01-authentication
GraphQL Yoga Documentation
https://the-guild.dev/graphql/yoga-server/tutorial/advanced/01-authentication
Beta Was this translation helpful? Give feedback.
All reactions