redux-token-auth icon indicating copy to clipboard operation
redux-token-auth copied to clipboard

signOutUser not setting headers

Open TheStu opened this issue 6 years ago • 2 comments

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

TheStu avatar Jan 10 '19 01:01 TheStu

Bit by same, any fixes?

ziaulrehman40 avatar May 21 '21 12:05 ziaulrehman40

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.

ziaulrehman40 avatar May 21 '21 12:05 ziaulrehman40