Pass OAuth session IDs to access user-authenticated integrations
await metorial.withProviderSession( provider, { serverDeployments: [ { serverDeploymentId: 'slack-deployment-id', oauthSessionId: storedOAuthSessionId // From your database } ] }, async ({ tools, closeSession }) => { // Tools now have access to user's Slack await closeSession(); } );
{ serverDeployments: [ { serverDeploymentId: 'github-deployment', oauthSessionId: githubOAuthSession }, { serverDeploymentId: 'slack-deployment', oauthSessionId: slackOAuthSession } ] }