Hit a weird wall with the JS SDK today. Running a script to audit OAuth client scopes across our org. Have full admin permissions. Calling platformClient.OAuth.listOAuthClients() returns an empty array []. Direct API call to GET /api/v2/oauth/clients via curl with the same token works fine. Returns the expected list. SDK version is latest. No errors thrown. Just empty. Code looks like this:
const oauth = platformClient.OAuth;
const clients = await oauth.listOAuthClients();
console.log(clients.entities); // []
Checked the network tab. Request hits the right endpoint. Status 200. Response body is []. Anyone else seeing this?