Skip to content

Commit

Permalink
fix(skeleton): use modified init in authenticated fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed May 1, 2024
1 parent 5f9c0a8 commit 76af087
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useAuthenticatedFetch = (): typeof fetch => {
modifiedInit.headers = new Headers(modifiedInit.headers);
modifiedInit.headers.set("Authorization", `Bearer ${accessToken}`);

return await fetch(input, init);
return await fetch(input, modifiedInit);
},
[getAccessTokenSilently, loginWithRedirect, location],
);
Expand Down

0 comments on commit 76af087

Please sign in to comment.