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.

Update oauth.ts

Kiran Kb0146eda1d5c
diff --git a/apps/web/lib/zod/schemas/oauth.ts b/apps/web/lib/zod/schemas/oauth.ts
index 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 sign
let scopes = [...new Set((scope ?? "").split(/[,\s+]/).filter(Boolean))];