diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index ec9b3de3ee..691efda981 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -145,11 +145,12 @@ class ProfileController extends Controller } $tokens = $this->tokenRepository->forUser(Auth::user()->getAuthIdentifier()); - - return $tokens->load('client')->filter(function ($token) { + $token_values = $tokens->load('client')->filter(function ($token) { return $token->client->personal_access_client && ! $token->revoked; })->values(); + return response()->json(Helper::formatStandardApiResponse('success', $token_values, null)); + }