redux-token-auth
redux-token-auth copied to clipboard
signOutUser not setting headers
It looks like signOutUser sets the access-token / uid / client as data when they should be set as headers. Relevant devise_token_auth docs: https://devise-token-auth.gitbook.io/devise-token-auth/usage
Bit by same, any fixes?
REPLACE3=' data: userSignOutCredentials, headers: userSignOutCredentials,';
ESCAPED_REPLACE3=$(printf '%s\n' "$REPLACE3" | sed -e 's/[\/&]/\\&/g');
sed -i.buk "234s/.*/$ESCAPED_REPLACE3/" node_modules/redux-token-auth/dist/actions.js
rm node_modules/redux-token-auth/dist/actions.js.buk
Use this script with after install hook, is a monkey patch, but solves the problem.