Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.

Refactoring and modernization #18

Merged
merged 13 commits into from
Jun 16, 2015
Prev Previous commit
Next Next commit
Fix incorrect 'ait' claim to 'iat'
  • Loading branch information
jeromegamez committed Jun 11, 2015
commit d65a396969bd38b7b5b54aef1b407c569bd26b5e
2 changes: 1 addition & 1 deletion src/TokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function create()
$claims = $this->processOptions();
$claims['d'] = $this->data;
$claims['v'] = 0;
$claims['ait'] = time();
$claims['iat'] = time();

try {
$token = \JWT::encode($claims, $this->secret, 'HS256');
Expand Down