Skip to content

Commit 1358e50

Browse files
committed
See #1148
1 parent 4cef65d commit 1358e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Auth/DatabaseTokenRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DatabaseTokenRepository extends BaseDatabaseTokenRepository
1212
*/
1313
protected function getPayload($email, $token)
1414
{
15-
return ['email' => $email, 'token' => $token, 'created_at' => new UTCDateTime(null)];
15+
return ['email' => $email, 'token' => $token, 'created_at' => new UTCDateTime(time() * 1000)];
1616
}
1717

1818
/**

0 commit comments

Comments
 (0)