Slow when logout

Hello. It is very slow when i use function logout of meteor(about 10s). Please help me!

yes me too. what’s wrong with this framework??!

I don’t have have this issue, I think people will need more details to be able to help.

The logout function waits for a callback from the server. You can speed it up my manually clearing the localstorage after calling logout:

Meteor._localStorage.removeItem('Meteor.loginToken');
Meteor._localStorage.removeItem('Meteor.loginTokenExpires');
Meteor._localStorage.removeItem('Meteor.userId');
1 Like

I know this is old but I’m curious how that would speed it up? It seems like the issue around slow logouts is waiting for subscriptions or method calls to finish. Is there something on the client waiting/checking for those values to be removed from localstorage so that removing them manually would make it quicker?