experimental well-known auth support
publish / publish (push) Has been cancelled

This commit is contained in:
Dax Raad
2025-07-29 19:30:24 -04:00
parent 9790340493
commit 8528f471c7
3 changed files with 53 additions and 9 deletions
+7 -1
View File
@@ -16,7 +16,13 @@ export namespace Auth {
key: z.string(),
})
export const Info = z.discriminatedUnion("type", [Oauth, Api])
export const WellKnown = z.object({
type: z.literal("wellknown"),
key: z.string(),
token: z.string(),
})
export const Info = z.discriminatedUnion("type", [Oauth, Api, WellKnown])
export type Info = z.infer<typeof Info>
const filepath = path.join(Global.Path.data, "auth.json")