Skip to content

Commit

Permalink
docs/website: correct is_token_valid logic on envoy page
Browse files Browse the repository at this point in the history
Fixes: #2395
Signed-off-by: Anthony Barbieri <anthonyabarbieri@gmail.com>
  • Loading branch information
princespaghetti authored and patrick-east committed May 14, 2020
1 parent 7ac32d6 commit b5c1587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/content/envoy-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ allow {
is_token_valid {
token.valid
token.payload.nbf <= time.now_ns()
time.now_ns() < token.payload.exp
now := time.now_ns() / 1000000000
token.payload.nbf <= now
now < token.payload.exp
}
action_allowed {
Expand Down

0 comments on commit b5c1587

Please sign in to comment.