Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jangaraj
Created October 23, 2021 08:02
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 jangaraj/121030d8d5bf6f9fff64b1d4fc077515 to your computer and use it in GitHub Desktop.
Save jangaraj/121030d8d5bf6f9fff64b1d4fc077515 to your computer and use it in GitHub Desktop.
NBF scripted mapper for Keycloak OIDC clients
# don't use Math.round, because it may round it into the
# future and it may be a problem for implementation, where
# nbf claim is verified
secondsSinceEpoch = Math.floor(new Date().getTime()/1000)
exports secondsSinceEpoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment