diff --git a/app/Services/IndieAuthService.php b/app/Services/IndieAuthService.php index b300702a..29b3b65c 100644 --- a/app/Services/IndieAuthService.php +++ b/app/Services/IndieAuthService.php @@ -26,7 +26,7 @@ class IndieAuthService { $endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain)); if ($endpoint === false) { - return; + return null; } return $endpoint; diff --git a/app/Services/TokenService.php b/app/Services/TokenService.php index 257bd84c..fd4cd1cb 100644 --- a/app/Services/TokenService.php +++ b/app/Services/TokenService.php @@ -45,7 +45,7 @@ class TokenService try { $token = (new Parser())->parse((string) $token); } catch (InvalidArgumentException | RuntimeException $e) { - return; + return null; } if ($token->verify($signer, config('app.key'))) { //signuture valid