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