@devries-cameron20 / composio-1 / commits / 1861d274a
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): guard nullable redirectUrl in expiry events guide

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 11, 2026 at 13:00 UTC 1861d274accb0c74758dd4e97a309d6b4be63f62
1 file changed +3 -1
docs/content/docs/subscribing-to-connection-expiry-events.mdx
+3 -1
@@ -104,7 +104,9 @@ export default async function webhookHandler(req: NextApiRequest, res: NextApiRe
104 // Look up the user and send them a re-auth link
105 const session = await composio.create(lookupUser(accountId));
106 const connectionRequest = await session.authorize(toolkit);
107 - notifyUser(connectionRequest.redirectUrl);
107 + if (connectionRequest.redirectUrl) {
108 + notifyUser(connectionRequest.redirectUrl);
109 + }
110
111 } else if (payload.type === 'composio.trigger.message') {
112 // Handle trigger events