
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@logto/api
Advanced tools
A TypeScript SDK for interacting with Logto's Management API using client credentials authentication.
npm install @logto/api
Before using this SDK, you need to:
For detailed setup instructions, visit: https://a.logto.io/m2m-mapi
import { createManagementApi } from '@logto/api/management';
// For Logto Cloud
const { apiClient } = createManagementApi('your-tenant-id', {
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
});
// Make API calls
const response = await apiClient.GET('/api/users');
console.log(response.data);
import { createManagementApi } from '@logto/api/management';
const { apiClient } = createManagementApi('default', {
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
baseUrl: 'https://your-logto-instance.com',
apiIndicator: 'https://your-logto-instance.com/api',
});
For detailed API documentation, refer to the Logto Management API documentation.
To avoid unnecessary build time in CI, full type generation only happens before publishing. The build script will generate mock types if no types are found.
To explicitly generate types, run:
pnpm generate-types
This will start a local Docker Compose environment, generate types by fetching the OpenAPI endpoints, and then shut down the environment.
FAQs
Logto API types and clients.
We found that @logto/api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.