Skip to content

Commit f9a83b7

Browse files
authored
use authorization instead of authentication (#128)
1 parent f37f599 commit f9a83b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/react/src/app/services/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const baseQuery = fetchBaseQuery({
2323
// By default, if we have a token in the store, let's use that for authenticated requests
2424
const token = (getState() as RootState).auth.token;
2525
if (token) {
26-
headers.set('authentication', `Bearer ${token}`);
26+
headers.set('authorization', `Bearer ${token}`);
2727
}
2828
return headers;
2929
},

0 commit comments

Comments
 (0)