Replace z.any() with z.custom<T>() for WebAuthn types

Use proper TypeScript types from @simplewebauthn/types instead of
z.any() for WebAuthn-related schemas:
- PublicKeyCredentialCreationOptionsJSON
- PublicKeyCredentialRequestOptionsJSON
- RegistrationResponseJSON
- AuthenticationResponseJSON

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
RevIQ
2026-01-09 12:17:29 +08:00
parent b6bce41092
commit a4dff188eb
4 changed files with 17 additions and 6 deletions

View File

@@ -17,6 +17,7 @@
},
"dependencies": {
"@orpc/contract": "^1.13.2",
"@simplewebauthn/types": "^12.0.0",
"libphonenumber-js": "^1.12.33",
"zod": "^4.3.5"
},