(feat): add first release

This commit is contained in:
Alois 2026-04-14 00:58:38 +02:00
commit 2ba049f576
19 changed files with 1819 additions and 0 deletions

25
dist/schema.js vendored Normal file
View file

@ -0,0 +1,25 @@
import z, { ZodObject } from "zod";
export function createSchema(appData) {
return {
identification: {
request: z.object({
app_identifier: z.string(),
app_session_id: z.number(),
app_public_key: z.string(),
user_id: z.number(),
}),
response: z.object({
challenge: z.base64(),
public_key: z.base64(),
}),
},
challenge_response: {
request: z.object({
challenge: z.base64(),
}),
response: z.object({
app_data: appData,
}),
},
};
}