Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1175 from MitanOmar/refresh-authentication-before…
Browse files Browse the repository at this point in the history
…-making-request
  • Loading branch information
MitanOmar committed Feb 16, 2024
2 parents 9862973 + a687a59 commit 13fe4dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default class FetchService extends Service {
@service session;

async fetch(resource, init = {}) {
await this.session.refreshAuthentication.perform();
init.headers = cleanObject({
...this.headers,
...(init.headers || {}),
Expand Down

0 comments on commit 13fe4dc

Please sign in to comment.