Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created October 2, 2018 11:09
Show Gist options
  • Save tsh-code/697c43de4c05f64b4cdcaf988e2e48f4 to your computer and use it in GitHub Desktop.
Save tsh-code/697c43de4c05f64b4cdcaf988e2e48f4 to your computer and use it in GitHub Desktop.
function tokenExpired(token) {
return token.expirationDate < new Date();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment