The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
infer the response type
Kiran Kaeaa79bfc503
diff --git a/apps/web/lib/integrations/hubspot/oauth.ts b/apps/web/lib/integrations/hubspot/oauth.tsindex ec2dcf1e01..9f007c636e 100644--- a/apps/web/lib/integrations/hubspot/oauth.ts+++ b/apps/web/lib/integrations/hubspot/oauth.ts@@ -8,10 +8,12 @@ const hubSpotTokenSchema = z.object({scopes: z.array(z.string()),hub_id: z.number(),expires_in: z.number().describe("Expires in seconds."),- created_at: z.number(),+ created_at: z.number().optional(),});-export const hubSpotOAuthProvider = new OAuthProvider<typeof hubSpotTokenSchema>({+export const hubSpotOAuthProvider = new OAuthProvider<+ typeof hubSpotTokenSchema+>({name: "HubSpot",clientId: process.env.HUBSPOT_CLIENT_ID || "",clientSecret: process.env.HUBSPOT_CLIENT_SECRET || "",diff --git a/apps/web/lib/integrations/oauth-provider.ts b/apps/web/lib/integrations/oauth-provider.tsindex 1c9e461bc3..9ff9853dfa 100644--- a/apps/web/lib/integrations/oauth-provider.ts+++ b/apps/web/lib/integrations/oauth-provider.ts@@ -49,7 +49,6 @@ export class OAuthProvider<T extends z.ZodSchema> {);const stateKey = `${this.provider.redisStatePrefix}:${state}`;-const contextId = await redis.getdel<string>(stateKey);if (!contextId) {