mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Enforce 10-minute TTL for generated company invites
This commit is contained in:
parent
c3ac209e5f
commit
0f895a8cf9
6 changed files with 19 additions and 7 deletions
|
|
@ -9,7 +9,6 @@ import {
|
|||
|
||||
export const createCompanyInviteSchema = z.object({
|
||||
allowedJoinTypes: z.enum(INVITE_JOIN_TYPES).default("both"),
|
||||
expiresInHours: z.number().int().min(1).max(24 * 30).optional().default(72),
|
||||
defaultsPayload: z.record(z.string(), z.unknown()).optional().nullable(),
|
||||
agentMessage: z.string().max(4000).optional().nullable(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue