Let's add some authentication before I am drowned in reports.

This commit is contained in:
James Cole
2026-04-24 05:37:55 +02:00
parent 30cce327e8
commit b33b22e0b3
2 changed files with 4 additions and 0 deletions
@@ -115,6 +115,9 @@ final class OAuthController extends Controller
public function listClients(): JsonResponse
{
if(!auth()->check()) {
return response()->json([]);
}
Log::debug('Now in listClients()');
// Retrieving all the OAuth app clients that belong to the user...
$clients = auth()->user()->oauthApps()->where('revoked', false)->get();