Ok, I spoke too soon. I have an issue with the han...
# graphql-kotlin
s
Ok, I spoke too soon. I have an issue with the handling of subscriptions, or at least my understanding is limited. The existing code seems to be doing the same thing twice (getting the user credentials - JWT token - from the request). They do this in a custom
generateContext
method (adding the credentials to the context, so that these can be forwarded to other services) and then repeat the same steps in the
onOperation
of a custom
ApolloSubscriptionHooks
implementation. Intuitively I would expect the
generateContext
to always be called for every request, including the subscription connection request, so anything done there does not need to be repeated downstream?