Slow when logout


#1

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


#2

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


#3

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


#4

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');