I have a custom OAuth implementation and get a expiresAt Date from the OAuth server. I need to log the User out when the expiration has arrived and am wondering where would be the best place to check this. I can use the Accounts onLogin function but it could be that the user is logged in during this time.
I thought maybe a timeout function but do not know where I would need to put this to make it not heavy on the system. In older non reactive systems this would be done per request but due to the nature of things in Meteor I am not sure.
Has anyone done this before? Thanks for your input.