diff --git a/lib/plug/crypto.ex b/lib/plug/crypto.ex index b8b29c8..fa8770b 100644 --- a/lib/plug/crypto.ex +++ b/lib/plug/crypto.ex @@ -168,7 +168,7 @@ defmodule Plug.Crypto do * `:key_digest` - option passed to `Plug.Crypto.KeyGenerator` when generating the encryption and signing keys. Defaults to `:sha256` * `:signed_at` - set the timestamp of the token in seconds. - Defaults to `System.system_time(:second)` + Defaults to `System.system_time(:millisecond)` * `:max_age` - the default maximum age of the token. Defaults to `86400` seconds (1 day) and it may be overridden on `verify/4`. @@ -196,7 +196,7 @@ defmodule Plug.Crypto do * `:key_digest` - option passed to `Plug.Crypto.KeyGenerator` when generating the encryption and signing keys. Defaults to `:sha256` * `:signed_at` - set the timestamp of the token in seconds. - Defaults to `System.system_time(:second)` + Defaults to `System.system_time(:millisecond)` * `:max_age` - the default maximum age of the token. Defaults to `86400` seconds (1 day) and it may be overridden on `decrypt/4`.