Session expiry - meteor


#1

I have trouble prompting the user @ client side while removing user login tokens from the server.
The autorun with Meteor.userId() dependency, is not getting invoked when this happens. I’m using meteor 1.2.1. What could be the issue here?
Thanks in advance.


#2

Check out the Accounts.onLoginFailure function. When I had to migrate our users from meteor’s accounts-password to auth0, I used that function to get them to login to auth0 automatically if their client was trying to continue their meteor session (but couldn’t because I removed the resume tokens from our database).


#3

when we remove login tokens from server side, is there any way we can selectively remove them, identify the tokens from device or desktop?


#4

thanks for the reply, i’ll check it out


#5

They are stored on a per-user-document basis, so if you have some way to associate a target class of device with a set of users, you can choose to remove the tokens only for that set of users.


#6

that is not possible in my case. every user can login from device (cordova app) or from browser.