Need way to de-authenticate.
Opened this issue · 6 comments
mralexgray commented
Need way to de-authenticate.
facundoolano commented
Something like
delete socket.auth;
socket.disconnect();
doesn't do the trick?
mralexgray commented
yes, that would be one way to do it... but wouldn't it be more "socket.io"-y to emit a unauthorized
event.. and similarly.. NOT disconnect
the host socket.. but leave it open, for possible re-authentication, manipulation, etc?
mralexgray commented
bump --- i was hoping to use 'deauthenticate` in my example app :-)
jdylanstewart commented
I have a need for this as well.
facundoolano commented
I'm not currently spending time on this project, but PRs are welcome.
jdylanstewart commented
If I have a couple extra cycles, I'll take a stab at it. I just worked around it using my redux flow for now with an auto reconnect.