Keep public key as a jwk json obj instead

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:18:07 -08:00
parent f06f6108f4
commit a29029c192
3 changed files with 14 additions and 6 deletions
@@ -54,8 +54,8 @@ export async function up(knex: Knex): Promise<void> {
// Multi-value emails array
t.specificType("emails", "text[]").notNullable();
// Public key (PEM format)
t.text("publicKey").notNullable();
// Public key (JWK format)
t.jsonb("publicKey").notNullable();
t.timestamps(true, true, true);
});
+1 -1
View File
@@ -11,7 +11,7 @@ export const PkiAcmeAccountsSchema = z.object({
id: z.string().uuid(),
profileId: z.string().uuid(),
emails: z.string().array(),
publicKey: z.string(),
publicKey: z.unknown(),
createdAt: z.date(),
updatedAt: z.date()
});