Skip to content

Commit cae66c8

Browse files
committed
fix: correct message validation
1 parent 15f5367 commit cae66c8

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/types.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,8 @@ declare module "iron-session" {
88
}
99
}
1010

11-
const siweMessageSchema = z.object({
12-
domain: z.string(),
13-
address: z.string(),
14-
statement: z.string().optional(),
15-
uri: z.string(),
16-
version: z.string(),
17-
chainId: z.number(),
18-
nonce: z.string(),
19-
issuedAt: z.string().optional(),
20-
expirationTime: z.string().optional(),
21-
notBefore: z.string().optional(),
22-
requestId: z.string().optional(),
23-
resources: z.array(z.string()),
24-
});
25-
2611
export const signInRequestSchema = z.object({
27-
message: siweMessageSchema,
12+
message: z.string(),
2813
signature: z.string(),
2914
});
3015

0 commit comments

Comments
 (0)