(feat): add first release
This commit is contained in:
parent
fc0a1a982d
commit
2ba049f576
19 changed files with 1819 additions and 0 deletions
25
dist/schema.js
vendored
Normal file
25
dist/schema.js
vendored
Normal 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,
|
||||
}),
|
||||
},
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue