diff --git a/src/Module/OAuth/Token.php b/src/Module/OAuth/Token.php index a690bd0b1c..3cb59a4c10 100644 --- a/src/Module/OAuth/Token.php +++ b/src/Module/OAuth/Token.php @@ -54,6 +54,7 @@ class Token extends BaseApi } $condition = ['application-id' => $application['id'], 'code' => $code]; + $token = DBA::selectFirst('application-token', ['access_token'], $condition); if (!DBA::isResult($token)) { Logger::warning('Token not found', $condition);