set auth token from server side cookie value name
Your use case
When I login the auth token gets set as a cookie and only available to the server. It would be nice to see if I could define a cookie name that nuxt-graphql-client looks for and set's the cookie value as auth for me.
The solution you'd like
I would like to define a cookie name SERVER_COOKIE_NAME_AUTH and then it will auth using that cookie passing it down to the client app to auth.
Possible alternatives
No response
Additional information
No response
When I login the auth token gets set as a cookie and only available to the server
if you've set httpOnly: true option in cookieOptions, that would result in the cookie only being accessible via the server.
@cpreston321 You can leverage tokenStorage.name to specify the name you'd like to be used for the cookie.
@Diizzayy Since the cookie has already been set by a thrid-party system I have to leverage this cookie to auth with GQL but when we deploy projects all cookies are only accessible through .<subdomain> to access it.