Remove dependency to meteor/apollo getUser
eric-burel opened this issue · comments
Eric Burel commented
getUser
is only a small helper to get the user based on its auth token.
We should duplicate this code in Vulcan and get rid of "meteor/apollo" dependency for this usage.
Relevant code:
- https://github.com/meteor/apollo/blob/master/src/server.js
- packages/vulcan-lib/lib/server/apollo-server/context.js
Also, setupAuthToken
should be exported in order to be reused in Express endpoints more easily.
Eric Burel commented
Closed by #2706