Skip to content

Commit 0ac50ac

Browse files
Spomkygitbook-bot
Spomky
authored andcommitted
GitBook: [master] one page modified
1 parent be5e592 commit 0ac50ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/signed-tokens-jws/jws-loading.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ $jws = $serializerManager->unserialize($token);
5353
$jwsVerifier->verifyWithKey($jws, $jwk);
5454
```
5555

56-
OK so if not exception is thrown, then your token signature is valid. You can then check the claims \(if any\) using the claim checker manager.
56+
OK so if no exception is thrown, then your token signature is valid. You can then check the claims \(if any\) using the claim checker manager.
5757

5858
## JWSLoader Object
5959

6060
To avoid duplication of code lines, you can create a `JWSLoader` object. This object contains a serializer, a verifier and an optional header checker \(highly recommended\).
6161

6262
In the following example, the `JWSLoader` object will try to unserialize the token `$token`, check the header parameters and verify the signature with the key `$key`. The variable `$payload` corresponds to the detached payload \(`null` by default\).
6363

64-
If the verification succeeded, the variable `$signautre` will be set with the signature index and should be in case of multiple signatures. The method returns the JWS object.
64+
If the verification succeeded, the variable `$signature` will be set with the signature index and should be in case of multiple signatures. The method returns the JWS object.
6565

6666
```php
6767
<?php

0 commit comments

Comments
 (0)