Get logged in users info

Yes i have that turned on now thanks for sharing that info

But I am still getting an error

{
    "errorCode": "PERMISSION_DENIED",
    "errorName": "ApiUsageDenied",
    "errorInstanceId": "aceaebf1-045b-47d0-94c6-eadecd16b50b",
    "parameters": {
        "missingScope": "api:usage:admin-read"
    }
}

I have updated my scopes

import { Client, createClient } from '@osdk/client';
import { $ontologyRid } from '@emma-prototype/sdk';
import { createPublicOauthClient } from '@osdk/oauth';

const url = import.meta.env.VITE_FOUNDRY_API_URL;
const clientId = import.meta.env.VITE_FOUNDRY_CLIENT_ID;
const redirectUrl = import.meta.env.VITE_FOUNDRY_REDIRECT_URL;
const scopes = [
  'api:ontologies-read',
  'api:ontologies-write',
  'api:admin-read',
  'api:mediasets-read',
  'api:mediasets-write',
];

checkEnv(url, 'VITE_FOUNDRY_API_URL');
checkEnv(clientId, 'VITE_FOUNDRY_CLIENT_ID');
checkEnv(redirectUrl, 'VITE_FOUNDRY_REDIRECT_URL');

function checkEnv(
  value: string | undefined,
  name: string
): asserts value is string {
  if (value == null) {
    throw new Error(`Missing environment variable: ${name}`);
  }
}

export const auth = createPublicOauthClient(
  clientId,
  url,
  redirectUrl,
  true,
  undefined,
  window.location.toString(),
  scopes
);

/**
 * Initialize the client to interact with the Ontology SDK
 */
const client: Client = createClient(url, $ontologyRid, auth);

export default client;

I have generated a new osdk and imported it into my code base not sure if I need to do something else.