Skip to content

Commit

Permalink
docs: minor update [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 25, 2019
1 parent 11a30e2 commit 5bf968f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you are new to JWT or want to refresh your familiarity with it, please check
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)


- Lightweight JSON Web Token (JWT) library for PHP5.5 or newer.
- Lightweight JSON Web Token (JWT) library for PHP5.6 or newer.

## Installation
```
Expand All @@ -23,7 +23,7 @@ composer require adhocore/jwt
```
'HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512'
```
- `kid` support
- `kid` support.
- Leeway support 0-120 seconds.
- Timestamp spoofing for tests.
- Passphrase support for `RS*` algos.
Expand Down Expand Up @@ -79,7 +79,7 @@ $payload = $jwt->decode($token);
```

> Oneliner:
```
```php
$token = (new JWT('topSecret', 'HS512', 1800))->encode(['uid' => 1, 'scopes' => ['user']]));
$payload = (new JWT('topSecret', 'HS512', 1800))->decode($token);
```
Expand Down

0 comments on commit 5bf968f

Please sign in to comment.