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

Add Fetch path to tsconfig; update response types #80

Merged
merged 2 commits into from
Mar 13, 2023
Merged

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Mar 8, 2023

Adds the type path for the ember-fetch addon.

This revealed a few type errors, which I've fixed here.

Once this is merged #45 resolve quickly.

@jeffdaley jeffdaley requested a review from a team as a code owner March 8, 2023 01:45
Comment on lines +82 to +87
method: "GET",
headers: {
"Hermes-Google-Access-Token":
this.session.data.authenticated.access_token,
},
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but we shouldn't need this anymore with how we now automatically add the auth header to requests to the backend in the fetch service:

if (Array.from(url)[0] == "/") {
options.headers = {
...options.headers,
"Hermes-Google-Access-Token":
this.session.data.authenticated.access_token,
};
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Addressed separately at #91

@jeffdaley jeffdaley merged commit 2889f3e into main Mar 13, 2023
@jeffdaley jeffdaley deleted the jeffdaley/fetch branch March 13, 2023 17:59
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants