Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use express-session for cookie-based authentication? #256

Closed
pedromsfernandes opened this issue Oct 29, 2021 · 1 comment
Labels
question Further information about the library is requested

Comments

@pedromsfernandes
Copy link

pedromsfernandes commented Oct 29, 2021

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.

@enisdenjo
Copy link
Owner

Moved to #257.

@enisdenjo enisdenjo added the question Further information about the library is requested label Oct 29, 2021
Repository owner locked as resolved and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information about the library is requested
Projects
None yet
Development

No branches or pull requests

2 participants