mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 01:15:49 +10:00
chore: merge main, resolve biome formatting conflicts
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
This commit is contained in:
@@ -4,9 +4,5 @@ export const ZCreatePasskeyRegistrationOptionsRequestSchema = z.void();
|
||||
|
||||
export const ZCreatePasskeyRegistrationOptionsResponseSchema = z.any(); // PublicKeyCredentialCreationOptions type
|
||||
|
||||
export type TCreatePasskeyRegistrationOptionsRequest = z.infer<
|
||||
typeof ZCreatePasskeyRegistrationOptionsRequestSchema
|
||||
>;
|
||||
export type TCreatePasskeyRegistrationOptionsResponse = z.infer<
|
||||
typeof ZCreatePasskeyRegistrationOptionsResponseSchema
|
||||
>;
|
||||
export type TCreatePasskeyRegistrationOptionsRequest = z.infer<typeof ZCreatePasskeyRegistrationOptionsRequestSchema>;
|
||||
export type TCreatePasskeyRegistrationOptionsResponse = z.infer<typeof ZCreatePasskeyRegistrationOptionsResponseSchema>;
|
||||
|
||||
@@ -7,9 +7,5 @@ export const ZCreatePasskeySigninOptionsResponseSchema = z.object({
|
||||
sessionId: z.string(),
|
||||
});
|
||||
|
||||
export type TCreatePasskeySigninOptionsRequest = z.infer<
|
||||
typeof ZCreatePasskeySigninOptionsRequestSchema
|
||||
>;
|
||||
export type TCreatePasskeySigninOptionsResponse = z.infer<
|
||||
typeof ZCreatePasskeySigninOptionsResponseSchema
|
||||
>;
|
||||
export type TCreatePasskeySigninOptionsRequest = z.infer<typeof ZCreatePasskeySigninOptionsRequestSchema>;
|
||||
export type TCreatePasskeySigninOptionsResponse = z.infer<typeof ZCreatePasskeySigninOptionsResponseSchema>;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import type { RegistrationResponseJSON } from '@simplewebauthn/server';
|
||||
|
||||
import { createPasskey } from '@documenso/lib/server-only/auth/create-passkey';
|
||||
import type { RegistrationResponseJSON } from '@simplewebauthn/server';
|
||||
|
||||
import { authenticatedProcedure } from '../trpc';
|
||||
import { ZCreatePasskeyRequestSchema, ZCreatePasskeyResponseSchema } from './create-passkey.types';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import { ZRegistrationResponseJSONSchema } from '@documenso/lib/types/webauthn';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ZCreatePasskeyRequestSchema = z.object({
|
||||
passkeyName: z.string().trim().min(1),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import { ZFindResultResponse, ZFindSearchParamsSchema } from '@documenso/lib/types/search-params';
|
||||
import PasskeySchema from '@documenso/prisma/generated/zod/modelSchema/PasskeySchema';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ZFindPasskeysRequestSchema = ZFindSearchParamsSchema.extend({
|
||||
orderBy: z
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ZCurrentPasswordSchema = z
|
||||
.string()
|
||||
.min(6, { message: 'Must be at least 6 characters in length' })
|
||||
.max(72);
|
||||
export const ZCurrentPasswordSchema = z.string().min(6, { message: 'Must be at least 6 characters in length' }).max(72);
|
||||
|
||||
export const ZPasswordSchema = z
|
||||
.string()
|
||||
|
||||
Reference in New Issue
Block a user