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 f37f599 commit f9a83b7Copy full SHA for f9a83b7
examples/react/src/app/services/posts.ts
@@ -23,7 +23,7 @@ const baseQuery = fetchBaseQuery({
23
// By default, if we have a token in the store, let's use that for authenticated requests
24
const token = (getState() as RootState).auth.token;
25
if (token) {
26
- headers.set('authentication', `Bearer ${token}`);
+ headers.set('authorization', `Bearer ${token}`);
27
}
28
return headers;
29
},
0 commit comments