Skip to content

Commit b867348

Browse files
authored
Fix doc for signed_at option (#42)
1 parent 2992c69 commit b867348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plug/crypto.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ defmodule Plug.Crypto do
168168
* `:key_digest` - option passed to `Plug.Crypto.KeyGenerator`
169169
when generating the encryption and signing keys. Defaults to `:sha256`
170170
* `:signed_at` - set the timestamp of the token in seconds.
171-
Defaults to `System.system_time(:second)`
171+
Defaults to `System.system_time(:millisecond)`
172172
* `:max_age` - the default maximum age of the token. Defaults to
173173
`86400` seconds (1 day) and it may be overridden on `verify/4`.
174174
@@ -196,7 +196,7 @@ defmodule Plug.Crypto do
196196
* `:key_digest` - option passed to `Plug.Crypto.KeyGenerator`
197197
when generating the encryption and signing keys. Defaults to `:sha256`
198198
* `:signed_at` - set the timestamp of the token in seconds.
199-
Defaults to `System.system_time(:second)`
199+
Defaults to `System.system_time(:millisecond)`
200200
* `:max_age` - the default maximum age of the token. Defaults to
201201
`86400` seconds (1 day) and it may be overridden on `decrypt/4`.
202202

0 commit comments

Comments
 (0)