Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signOutUser not setting headers #57

Open
TheStu opened this issue Jan 10, 2019 · 2 comments
Open

signOutUser not setting headers #57

TheStu opened this issue Jan 10, 2019 · 2 comments

Comments

@TheStu
Copy link

TheStu commented Jan 10, 2019

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

@ziaulrehman40
Copy link

Bit by same, any fixes?

@ziaulrehman40
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants