You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a NestJS server and an Apollo client with graphql-ws. I am using cookie-based authentication for my queries and mutations, and now I also need to authenticate the user in my subscriptions. Problem is, in every guide I've seen, only token-based auth is used. I found this issue which provides a solution, however that library is not maintained and as far as I know, graphql-ws onConnect method does not provide a ws argument. Can connectionParams be used for this? Thanks!
EDIT: I've noticed there's a discussions tab that seems to be better suited for this kind of question.
The text was updated successfully, but these errors were encountered:
I have a NestJS server and an Apollo client with
graphql-ws
. I am using cookie-based authentication for my queries and mutations, and now I also need to authenticate the user in my subscriptions. Problem is, in every guide I've seen, only token-based auth is used. I found this issue which provides a solution, however that library is not maintained and as far as I know, graphql-wsonConnect
method does not provide aws
argument. CanconnectionParams
be used for this? Thanks!EDIT: I've noticed there's a discussions tab that seems to be better suited for this kind of question.
The text was updated successfully, but these errors were encountered: