summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2022-12-24 16:31:03 -0500
committerPuyodead1 <puyodead@proton.me>2023-03-18 19:28:45 -0400
commitbdd4ddda522e3a7f0e192e3158148171c0e8f52b (patch)
tree0c231e9a5d97778a38610af1d5c1ca5eab2d36c9 /src/api
parentuse connection revoked error (diff)
downloadserver-bdd4ddda522e3a7f0e192e3158148171c0e8f52b.tar.xz
don't send token_data on connection update
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/connections/#connection_name/callback.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/connections/#connection_name/callback.ts b/src/api/routes/connections/#connection_name/callback.ts
index 250d4710..b3baa060 100644
--- a/src/api/routes/connections/#connection_name/callback.ts
+++ b/src/api/routes/connections/#connection_name/callback.ts
@@ -42,7 +42,7 @@ router.post(
 		if (connectedAccnt)
 			emitEvent({
 				event: "USER_CONNECTIONS_UPDATE",
-				data: connectedAccnt,
+				data: { ...connectedAccnt, token_data: undefined },
 				user_id: userId,
 			});