We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e33b3b commit 8df9187Copy full SHA for 8df9187
admin/authentication-support.md
@@ -16,7 +16,9 @@ import parseHydraDocumentation from "@api-platform/api-doc-parser/lib/hydra/pars
16
import authProvider from "./authProvider";
17
18
const entrypoint = process.env.REACT_APP_API_ENTRYPOINT;
19
-const fetchHeaders = { Authorization: `Bearer ${window.localStorage.getItem("token")}` };
+const fetchHeaders = () => ({
20
+ Authorization: `Bearer ${window.localStorage.getItem("token")}`,
21
+});
22
const fetchHydra = (url, options = {}) =>
23
localStorage.getItem("token")
24
? baseFetchHydra(url, {
0 commit comments