Skip to content

Commit

Permalink
Don't sent the auth header on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
rynbyjn committed Oct 25, 2016
1 parent e696c34 commit 64c8df0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sagas/requester.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ export function* performRequest(action) {
)
break
default:
options.headers = getHeaders(accessToken)
// don't send the auth headers on logout as it seems like
// this somehow seems to keep the rails session logged in
if (action.type !== ACTION_TYPES.AUTHENTICATION.LOGOUT) {
options.headers = getHeaders(accessToken)
}
break
}

Expand Down

0 comments on commit 64c8df0

Please sign in to comment.