@devries-cameron20 / composio-1 / commits / e5af67142
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: add alias to ToolRouterAuthorizeFn type (#3167)

# Description `ToolRouterAuthorizeFn` was missing the `alias` option that `Session.authorize` already supports. This caused type errors in docs code blocks that use `session.authorize('gmail', { alias: 'work-gmail' })`. One-line fix: add `alias?: string` to the options type. # How did I test this PR - Verified `Session.authorize` already accepts `alias` in its type definition - Confirmed `ToolRouterAuthorizeFn` is the type used by `ToolRouterSession.authorize` (returned by `composio.create()`) - This fix aligns the two type definitions Needed for docs PR #3160 to pass type checking.

Abir Taheer committed Apr 10, 2026 at 01:24 UTC e5af671425d2e36e3c05a794674f1df8908c8173

No changes.