Skip to content

Commit 73dea74

Browse files
committed
Docs: add builder to JWT authentication
1 parent 917192c commit 73dea74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/security.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ The following sample code authenticates as an installation using [lcobucci/jwt 4
4141
to generate a JSON Web Token (JWT).
4242

4343
```php
44+
use Github\HttpClient\Builder;
4445
use Lcobucci\JWT\Configuration;
4546
use Lcobucci\JWT\Encoding\ChainedFormatter;
4647
use Lcobucci\JWT\Signer\Key\LocalFileReference;
4748
use Lcobucci\JWT\Signer\Rsa\Sha256;
4849

50+
$builder = new Builder();
51+
4952
$github = new Github\Client($builder, 'machine-man-preview');
5053

5154
$config = Configuration::forSymmetricSigner(

0 commit comments

Comments
 (0)