Im developing a game with user roles.
I need to handle two session with the same account
And handle the logout action to redirect the view.
Any easy suggestion? Im a little lost
Im developing a game with user roles.
I need to handle two session with the same account
And handle the logout action to redirect the view.
Any easy suggestion? Im a little lost
There is no official way to do “onLogout”. If you do logout only when clicking on a link. You could hook into that event like Meteor.logout(() => { redirect() });
Give this a read:
Of course, but if…
if the user has two windows with the user log in, and in one window do the logout, I need redirect the two windows.
Thanks for your answer