Skip to content

Commit 820b0ba

Browse files
committed
Clarify timestamp. Closes #6438
1 parent a64dd8c commit 820b0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phoenix/token.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ defmodule Phoenix.Token do
152152
* `:key_digest` - option passed to `Plug.Crypto.KeyGenerator`
153153
when generating the encryption and signing keys. Defaults to `:sha256`
154154
* `:signed_at` - set the timestamp of the token in seconds.
155-
Defaults to `System.os_time(:millisecond)`
155+
Defaults to `System.os_time(:second)`
156156
* `:max_age` - the default maximum age of the token. Defaults to
157157
86400 seconds (1 day) and it may be overridden on `decrypt/4`.
158158

0 commit comments

Comments
 (0)