Closed matteodem closed 6 years ago
I've fixed this by using meteor-login-token
as the key, instead of authorization
, after checking the source code for the meteor apollo package: https://github.com/apollographql/meteor-integration/blob/master/src/main-server.js#L84
I'm having some problems with accessing the userId on the meteor graphql endpoint. I'm setting the token with an
ApolloLink
Another problem is that I cannot use the
getLoginToken
method in here as I don't see any example of async middleware. I'll create a separate ticket for that in the apollo-client repo though.So it successfully sets the authorization header, but on the server side the context doesn't set the userId. Is some other code needed to have that working? Or is there another way to access the userId on the server?