The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix oauth
Steven Tey1c1ddaef8d20
diff --git a/apps/web/lib/zod/schemas/oauth.ts b/apps/web/lib/zod/schemas/oauth.tsindex 7362c9aa94..5f03520bbb 100644--- a/apps/web/lib/zod/schemas/oauth.ts+++ b/apps/web/lib/zod/schemas/oauth.ts@@ -49,7 +49,10 @@ export const authorizeRequestSchema = z.object({.string().nullable().transform((scope) => {- const scopes = [...new Set(scope?.split(/[,\s]/).filter(Boolean))];+ // split by comma or space or plus sign+ const scopes = [+ ...new Set((scope ?? "").split(/[,\s+]/).filter(Boolean)),+ ];if (!scopes.includes("user.read")) {scopes.push("user.read");