The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update oauth.ts
Kiran Kb0146eda1d5c
diff --git a/apps/web/lib/zod/schemas/oauth.ts b/apps/web/lib/zod/schemas/oauth.tsindex e6b8a0b68e..5f64afeee7 100644--- a/apps/web/lib/zod/schemas/oauth.ts+++ b/apps/web/lib/zod/schemas/oauth.ts@@ -48,7 +48,7 @@ export const authorizeRequestSchema = z.object({state: z.string().max(1024).optional(),scope: z.string()- .nullable()+ .nullish().transform((scope) => {// split by comma or space or plus signlet scopes = [...new Set((scope ?? "").split(/[,\s+]/).filter(Boolean))];