Skip to content

Commit 5946e50

Browse files
committed
fix types for providerId
1 parent c3b227e commit 5946e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routes/_auth+/onboarding_.$provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function requireData({
6363
.object({
6464
email: z.string(),
6565
providerName: ProviderNameSchema,
66-
providerId: z.string(),
66+
providerId: z.string().or(z.number()),
6767
})
6868
.safeParse({ email, providerName: params.provider, providerId })
6969
if (result.success) {
@@ -119,7 +119,7 @@ export async function action({ request, params }: Route.ActionArgs) {
119119
const session = await signupWithConnection({
120120
...data,
121121
email,
122-
providerId,
122+
providerId: String(providerId),
123123
providerName,
124124
})
125125
return { ...data, session }

0 commit comments

Comments
 (0)