The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update refresh-token.ts
Kiran K0bc434288e07
diff --git a/apps/web/lib/integrations/hubspot/refresh-token.ts b/apps/web/lib/integrations/hubspot/refresh-token.tsindex 7861f5ca18..1d5bb8ab89 100644--- a/apps/web/lib/integrations/hubspot/refresh-token.ts+++ b/apps/web/lib/integrations/hubspot/refresh-token.ts@@ -4,6 +4,7 @@ import {HUBSPOT_CLIENT_ID,HUBSPOT_CLIENT_SECRET,} from "./constants";+import { hubSpotAuthTokenSchema } from "./schema";import { HubSpotAuthToken } from "./types";export async function refreshAccessToken({@@ -39,10 +40,10 @@ export async function refreshAccessToken({}// Store the new auth token- const newAuthToken: HubSpotAuthToken = {+ const newAuthToken = hubSpotAuthTokenSchema.parse({...result,created_at: Date.now(),- };+ });await prisma.installedIntegration.update({where: {