Files
Bahla-Frontend/src/models/social_auth_providers.ts
2026-09-01 17:18:28 +02:00

14 lines
383 B
TypeScript

import { z } from 'zod';
import { timestampSchema, uuidSchema } from './_shared';
export const socialAuthProviderSchema = z.object({
id: uuidSchema,
user_id: uuidSchema,
provider: z.enum(['google', 'apple']),
provider_user_id: z.string().trim().min(1).max(255),
created_at: timestampSchema,
});
export type SocialAuthProvider = z.infer<typeof socialAuthProviderSchema>;