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

Using meteor and apollo/graphQL together. #86

Closed
cerupcat opened this issue May 2, 2017 · 3 comments
Closed

Using meteor and apollo/graphQL together. #86

cerupcat opened this issue May 2, 2017 · 3 comments
Labels
question Issues that have a question which should be addressed

Comments

@cerupcat
Copy link

cerupcat commented May 2, 2017

We're currently using meteor-ios, but are considering migrating or slowly adding in apollo/graphQL into our app. How would authentication work where it can be shared across both and is there a way for data to be shared as well? Any insights on how to run both at the same time where a user may need to be logged in through both?

@martijnwalraven
Copy link
Contributor

I don't know of anyone who has attempted to use Meteor iOS and Apollo iOS together, but there is a Meteor integration package for Apollo that allows you to pass in a login token through a meteor-login-token header. You may be able to use the server part of that and set the token on the header yourself from Apollo iOS.

There is no easy way to share data, the store formats and APIs are pretty different. But you could use data from both in your UI of course.

@martijnwalraven martijnwalraven added the question Issues that have a question which should be addressed label May 3, 2017
@cerupcat
Copy link
Author

cerupcat commented May 3, 2017

Thanks @martijnwalraven. I'll take a look to see how passing a meteor-login-token in the header works. Is there already an example for that?

@martijnwalraven
Copy link
Contributor

There is documentation on adding additional headers, although we still need to make this more flexible so you don't have to create a new client when the token changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants