feat: integrate support for multi step auth flows for providers that require additional questions (#18035)

This commit is contained in:
Aiden Cline 2026-03-18 11:36:19 -05:00 committed by GitHub
commit 171e69c2fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 344 additions and 8 deletions

View file

@ -66,6 +66,7 @@ export namespace Server {
let status: ContentfulStatusCode
if (err instanceof NotFoundError) status = 404
else if (err instanceof Provider.ModelNotFoundError) status = 400
else if (err.name === "ProviderAuthValidationFailed") status = 400
else if (err.name.startsWith("Worktree")) status = 400
else status = 500
return c.json(err.toObject(), { status })