https://linen.dev logo
y
Is there a way to know if a service requires custom auth config per user programatically (for example: shopify, netsuite,..)? The way we know right now is look to see if it requires client secret and client id
b
Yes, there is a programmatic way to determine if a toolkit requires custom auth configuration per user. When you retrieve toolkit information via the SDK, check the
composioManagedAuthSchemes
property: Using the SDK:
Copy code
const toolkit = await composio.toolkits.get('shopify');

// Check if Composio manages the auth scheme
const requiresCustomOAuth = !toolkit.composioManagedAuthSchemes?.includes('OAUTH2');