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.

Refactor OAuth app creation to use 'userId' instead of 'createdBy'

Kiran Kee7ba8197f02
diff --git a/apps/web/app/api/oauth-apps/route.ts b/apps/web/app/api/oauth-apps/route.ts
index 6909f19949..54aabe09d5 100644
--- a/apps/web/app/api/oauth-apps/route.ts
+++ b/apps/web/app/api/oauth-apps/route.ts
@@ -49,7 +49,7 @@ export const POST = withWorkspace(
logo,
clientId,
clientSecretHashed: await hashToken(clientSecret),
- createdBy: session.user.id,
+ userId: session.user.id,
pkce,
},
});