socketio-auth icon indicating copy to clipboard operation
socketio-auth copied to clipboard

Need way to de-authenticate.

Open mralexgray opened this issue 8 years ago • 6 comments

mralexgray avatar Oct 15 '16 08:10 mralexgray

Something like

delete socket.auth;
socket.disconnect();

doesn't do the trick?

facundoolano avatar Oct 15 '16 15:10 facundoolano

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 avatar Oct 16 '16 15:10 mralexgray

bump --- i was hoping to use 'deauthenticate` in my example app :-)

mralexgray avatar Dec 17 '16 16:12 mralexgray

I have a need for this as well.

jdylanstewart avatar Mar 13 '17 16:03 jdylanstewart

I'm not currently spending time on this project, but PRs are welcome.

facundoolano avatar Mar 13 '17 16:03 facundoolano

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.

jdylanstewart avatar Mar 16 '17 16:03 jdylanstewart