mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-12 00:34:01 +00:00
feat: add PKCE for non public clients
This commit is contained in:
@@ -80,11 +80,19 @@ export function createForm<T extends z.ZodType<any, any>>(schema: T, initialValu
|
||||
});
|
||||
}
|
||||
|
||||
function setValue(key: keyof z.infer<T>, value: z.infer<T>[keyof z.infer<T>]) {
|
||||
inputsStore.update((inputs) => {
|
||||
inputs[key].value = value;
|
||||
return inputs;
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
schema,
|
||||
inputs: inputsStore,
|
||||
data,
|
||||
validate,
|
||||
setValue,
|
||||
reset
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user