https://linen.dev logo
Configure scopes for each connection
# 🖥│support-forum
n
Is it possible to create a connection using a subset of the scopes configured in an auth_config? The documentation hints at this being possible (see the ⁨`scope`⁩ field below), but using it doesn't change the Oauth scopes requested for the connection: ⁨``` // Create a connected account const connectionRequest = await composio.connectedAccounts.initiate( 'user123', // userId 'ac_12343544', // authConfigId: You can create it from the dashboard { callbackUrl: 'https://your-app.com/callback', data: { // Additional data for the connection scope: ['read', 'write'], }, } ); ```⁩
u
Hey @nima-durable, you cannot configure scope while initiating a connection. You can actually update your authConfig and then initiate a connection. Let me know if you need any help.