diff --git a/app/Http/Controllers/Backend/Auth/AccessTokenController.php b/app/Http/Controllers/Backend/Auth/AccessTokenController.php index 3446a9457..5000c9f5a 100644 --- a/app/Http/Controllers/Backend/Auth/AccessTokenController.php +++ b/app/Http/Controllers/Backend/Auth/AccessTokenController.php @@ -31,7 +31,7 @@ protected function extendResponseWithWebhookData(ServerRequestInterface $request } $body = $requestInterface->getParsedBody(); // Only create webhook on authorization code grant type. - if ($body['grant_type'] != 'code' ) { + if ($body['grant_type'] != 'authorization_code' ) { return $response; }