wip(app): provider settings

This commit is contained in:
adamelmore
2026-01-25 15:59:56 -06:00
committed by Adam
parent a5b72a7d99
commit 03d884797c
7 changed files with 322 additions and 46 deletions

View File

@@ -441,6 +441,36 @@ export namespace Server {
return c.json(true)
},
)
.delete(
"/auth/:providerID",
describeRoute({
summary: "Remove auth credentials",
description: "Remove authentication credentials",
operationId: "auth.remove",
responses: {
200: {
description: "Successfully removed authentication credentials",
content: {
"application/json": {
schema: resolver(z.boolean()),
},
},
},
...errors(400),
},
}),
validator(
"param",
z.object({
providerID: z.string(),
}),
),
async (c) => {
const providerID = c.req.valid("param").providerID
await Auth.remove(providerID)
return c.json(true)
},
)
.get(
"/event",
describeRoute({