-
Notifications
You must be signed in to change notification settings - Fork 734
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
Exceptional break point issue - passing token on Header. #112
Comments
|
How do we pass token in http header along with graphic query on Apollo.request? |
@alvinvgeorge This is tied to the issues around #37 - at this point you'd need to configure a new client with the updated header query, or just set up the headers when the client is set up. We'll be working in that issue around getting that working better. Is there anything else we can help with here? |
The updated client that allows you to set headers in preflight is now available in 0.11.0 - I'm going to close this issue out, but please feel free to open a new issue if you're still encountering any problems using that! |
Does anyone have suggestion for how to pass access token in a header file? |
@ShreyanshAlchemy Here's our documentation on advanced client setup, including an example that shows how to add information to a request header using the |
this is my StudentProfile.graphql file:
I want to make a fetch request to get data from server. After log in, I am supposed to send token as http header with the query to Get a particular student's profile details.
This is my button action:
These are the error I get in Xcode. Any help is appreciated.
The text was updated successfully, but these errors were encountered: