feat: integrate support for multi step auth flows for providers that require additional questions (#18035)
This commit is contained in:
parent
822bb7b336
commit
171e69c2fc
11 changed files with 344 additions and 8 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue