'success', 'message' => 'You have access to this admin-only endpoint', 'user' => [ 'id' => $auth['uid'], 'username' => $auth['username'], 'accessLevel' => $auth['accessLevel'] ] ]; // Send response echo json_encode($response);