socket.io-admin-ui icon indicating copy to clipboard operation
socket.io-admin-ui copied to clipboard

logout feature

Open hasan-4 opened this issue 4 years ago • 9 comments

add logout feature which will clear the browser local storage


Thank you

hasan-4 avatar Jun 05 '21 07:06 hasan-4

add this code with logout button

localStorage.clear(); // it will clear the  browser local storage data only

hasan-4 avatar Jun 05 '21 07:06 hasan-4

I would not suggest clearing the whole localStorage. I'm using this project on a subdirectory of my domain, and I also have some very important data stored in localStorage.

It would be better if we clear only those keys which are set by Admin UI.

fahadpf avatar Jun 07 '21 06:06 fahadpf

@fahadpf i agree with you

Replay: @mdawaffe

I would not suggest clearing the whole localStorage. I'm using this project on a subdirectory of my domain, and I also have some very important data stored in localStorage.

It would be better if we clear only those keys which are set by Admin UI.

hasan-4 avatar Jun 07 '21 07:06 hasan-4

That's a good idea. @imithu would you have the time to implement it?

darrachequesne avatar Jun 08 '21 08:06 darrachequesne

sure, i will do it in nuxt

Replay: @darrachequesne That's a good idea. @imithu would you have the time to implement it?

hasan-4 avatar Jun 08 '21 11:06 hasan-4

It would be really great if this could be implemented

Thomas-1985 avatar Jun 23 '22 19:06 Thomas-1985

@Thomas-1985 could you please explain your use case?

I'm not sure about the feature that is requested here. Should we overload the "update" button?

darrachequesne avatar Jun 27 '22 21:06 darrachequesne

Well there should be a "logout" button that logs you out of the ui. Like @fahadpf mentioned, the code should only clear the set localStorage keys and not clear it out completely (there could be other data stored).

Thomas-1985 avatar Jun 27 '22 22:06 Thomas-1985

This excellent piece of software is sorely lacking this feature - it would make this product almost PERFECT. Please implement.

tfrancois avatar Oct 29 '23 15:10 tfrancois