Skip to content

Commit e401633

Browse files
authored
Update signing example with valid System.time_unit (#25)
1 parent 9760f35 commit e401633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ claims = %{
151151
# When the token was issued
152152
"iat" => DateTime.to_unix(now),
153153
# When the token expires (1 hour)
154-
"exp" => DateTime.add(now, 3600, :seconds) |> DateTime.to_unix()
154+
"exp" => DateTime.add(now, 3600, :second) |> DateTime.to_unix()
155155
}
156156

157157

0 commit comments

Comments
 (0)