Skip to content

Commit

Permalink
Merge pull request #195 from carlnordenfelt/patch-1
Browse files Browse the repository at this point in the history
Changed nbf to exp
  • Loading branch information
lcobucci authored Sep 1, 2017
2 parents ddce703 + a16c9dc commit 47a07f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $token = (new Builder())->setIssuer('http://example.com') // Configures the issu
->setId('4f1g23a12aa', true) // Configures the id (jti claim), replicating as a header item
->setIssuedAt(time()) // Configures the time that the token was issue (iat claim)
->setNotBefore(time() + 60) // Configures the time that the token can be used (nbf claim)
->setExpiration(time() + 3600) // Configures the expiration time of the token (nbf claim)
->setExpiration(time() + 3600) // Configures the expiration time of the token (exp claim)
->set('uid', 1) // Configures a new claim, called "uid"
->sign($signer, 'testing') // creates a signature using "testing" as key
->getToken(); // Retrieves the generated token
Expand Down

0 comments on commit 47a07f8

Please sign in to comment.