Skip to content

Commit

Permalink
Fix BUG on token generation
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Mar 15, 2017
1 parent 4a42a61 commit 4319892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JwtWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function createJwtData($data, $secondsExpire = 60, $secondsNotBefore = 0)
$issuedAt = time();
$notBefore = $issuedAt + $secondsNotBefore; //Adding 10 seconds
$expire = $notBefore + $secondsExpire; // Adding 60 seconds
$serverName = $this->secretKey; // Retrieve the server name from config file
$serverName = $this->serverName; // Retrieve the server name from config file

/*
* Create the token as an array
Expand Down

0 comments on commit 4319892

Please sign in to comment.