Skip to content

Update auth Zod schemas for device payloads #166

Description

@codebestia

Extend apps/backend/src/schemas/auth.schemas.ts VerifySchema with a nested device object schema. Validate deviceId as UUID, platform in enum, identityPublicKey as base64 of expected length, deviceName length-bounded. Export the device sub-schema for reuse by POST /devices.

Acceptance criteria:

  • Verify rejects malformed device payloads with field-level errors
  • Device sub-schema reused by /devices route

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions