chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { isOAuthWizardUrl } from '@botpress/common/src/oauth-wizard'
import type { Handler } from '../misc/types'
import { oauthWizardHandler } from '../oauth-wizard'
export const handler: Handler = async (props) => {
if (isOAuthWizardUrl(props.req.path)) {
return await oauthWizardHandler(props)
}
props.logger.forBot().warn('Received request for an invalid OAuth wizard endpoint.', {
path: props.req.path,
})
return {
status: 404,
body: 'Invalid OAuth wizard endpoint',
}
}