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.

don't expose email in userinfo

Kiran Ka5d2ce5b299f
diff --git a/apps/web/app/api/oauth/userinfo/route.ts b/apps/web/app/api/oauth/userinfo/route.ts
index a2ffce0947..1f4ca77e9d 100644
--- a/apps/web/app/api/oauth/userinfo/route.ts
+++ b/apps/web/app/api/oauth/userinfo/route.ts
@@ -22,7 +22,6 @@ export async function GET(req: NextRequest) {
user: {
select: {
id: true,
- email: true,
name: true,
image: true,
},
@@ -41,7 +40,6 @@ export async function GET(req: NextRequest) {
const userInfo = {
id: user.id,
- email: user.email,
name: user.name,
image: user.image,
};