Skip to content

Instantly share code, notes, and snippets.

@olore
Created April 2, 2015 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olore/98e8f19db2936a5a92e1 to your computer and use it in GitHub Desktop.
Save olore/98e8f19db2936a5a92e1 to your computer and use it in GitHub Desktop.
what i do - after
if (dateHasPassed(expectedLogoutDate)) {
logger.info('timeout service - openDialog called but past logout time');
sessionStoreService.ensureSessionIsValid();
return $q.reject();
}
function dateHasPassed(date) {
return moment().isAfter(moment(date));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment