Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

support http:// redirect url

Kiran K3897aa9a24b8
diff --git a/apps/web/lib/zod/schemas/oauth.ts b/apps/web/lib/zod/schemas/oauth.ts
index e59013f252..7eb2d624c6 100644
--- a/apps/web/lib/zod/schemas/oauth.ts
+++ b/apps/web/lib/zod/schemas/oauth.ts
@@ -25,13 +25,12 @@ export const createOAuthAppSchema = createIntegrationSchema.merge(
.refine(
(urls) => {
return urls.every(
- (url) =>
- url.startsWith("https://") || url.startsWith("http://localhost"),
+ (url) => url.startsWith("https://") || url.startsWith("http://"),
);
},
{
message:
- "redirect_uri must be a valid URL starting with 'https://' except for 'http://localhost'",
+ "redirect_uri must be a valid URL starting with 'https://' or 'http://'",
},
),
pkce: z.boolean().default(false),