From a16c9dcb28e0786cd31f59ffdd4b514bedbdfe26 Mon Sep 17 00:00:00 2001 From: Carl Nordenfelt Date: Fri, 1 Sep 2017 08:38:56 +0200 Subject: [PATCH] Changed nbf to exp --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dd00b88..eacdeb90 100644 --- a/README.md +++ b/README.md @@ -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