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

broken context when serverOptions.context is set #96

Open
irzhywau opened this issue Apr 19, 2021 · 0 comments
Open

broken context when serverOptions.context is set #96

irzhywau opened this issue Apr 19, 2021 · 0 comments

Comments

@irzhywau
Copy link

I've tried to add some feature in my app regarding authorization by relying on apollo context which I thought to implement in serverOptions

https://www.apollographql.com/docs/apollo-server/security/authentication/#putting-authenticated-user-info-on-the-context

unfortunately, I got an error Cannot read property 'call' of undefined. https://github.com/moleculerjs/moleculer-apollo-server/blob/master/src/service.js#L246

After a checking I saw that context.ctx is indeed undefined and the whole context object has changed. I can see what I implemented in the step before but none of what should be there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant