Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Namespace in code examples
  • Loading branch information
gRegorLove authored Nov 8, 2022
1 parent 653c4df commit 9f3f9cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,14 @@ Next, the `state` and `iss` parameters must be verified to match the authorizati

```php
$response = self::validateStateMatch($_GET, $_SESSION['indieauth_state']);
if ($response instanceof ErrorResponse) {
if ($response instanceof IndieAuth\ErrorResponse) {
// handle the error response, array with keys `error` and `error_description`
die(json_encode($response->getArray()));
}

if (isset($_SESSION['indieauth_issuer'])) {
$response = self::validateIssuerMatch($_GET, $_SESSION['indieauth_issuer']);
if ($response instanceof ErrorResponse) {
if ($response instanceof IndieAuth\ErrorResponse) {
// handle the error response, array with keys `error` and `error_description`
die(json_encode($response->getArray()));
}
Expand Down

0 comments on commit 9f3f9cc

Please sign in to comment.