From 891c42b87e9cda425071e1e18836fe03462bf86c Mon Sep 17 00:00:00 2001 From: Jitendra Adhikari Date: Wed, 9 Oct 2019 09:32:33 +0545 Subject: [PATCH] docs: minor update --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f03961f..b1960bb 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,8 @@ $payload = (new JWT('topSecret', 'HS512', 1800))->decode($token); $token = $jwt->encode($payload, ['hdr' => 'hdr_value']); ``` +#### Test mocking + > Spoof time() for testing token expiry: ```php $jwt->setTestTimestamp(time() + 10000); @@ -122,6 +124,7 @@ $token = $jwt->encode(['a' => 1, 'exp' => time() + 1000], ['kid' => 'key3']); Although not yet in v1.0, but the library and the API it provides is pretty stable and will not be changed too broadly. + ### Integration #### Phalcon