Skip to content

Commit

Permalink
rebase-cleanup: restore logout
Browse files Browse the repository at this point in the history
The `/authn/logout` request requires the `X-Okapi-Tenant` header to
succeed.

(cherry picked from commit eeaa34a)
  • Loading branch information
zburke committed Jul 25, 2024
1 parent d15fe3a commit adcf437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loginServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ export async function logout(okapiUrl, store) {
fetch(`${okapiUrl}/authn/logout`, {
method: 'POST',
mode: 'cors',
credentials: 'include'
credentials: 'include',
headers: getHeaders(store.getState()?.okapi?.tenant),
})
:
Promise.resolve();
Expand Down

0 comments on commit adcf437

Please sign in to comment.