Skip to content

Commit

Permalink
docs: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore authored Oct 9, 2019
1 parent e95f864 commit 891c42b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 891c42b

Please sign in to comment.