Fix button and translations.

This commit is contained in:
James Cole
2026-04-18 06:24:13 +02:00
parent 0b02800a00
commit b4b67b0759
4 changed files with 11 additions and 3 deletions
@@ -120,8 +120,15 @@ final class OAuthController extends Controller
{
// Retrieving all the OAuth app clients that belong to the user...
$clients = auth()->user()->oauthApps()->where('revoked', false)->get();
$array = [];
/** @var Client $client */
foreach($clients as $client) {
$item = $client->toArray();
$item['confidential'] = $client->confidential();
$array[] = $item;
}
return response()->json($clients);
return response()->json($array);
}
public function listPersonalAccessTokens(): JsonResponse