From 710a1a7d38f30aa32b2cbd25f06d404891792ea9 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:43:15 -0500 Subject: [PATCH] add teamId when refreshing access token (#13159) Co-authored-by: CarinaWolli Co-authored-by: Keith Williams --- apps/web/pages/api/auth/oauth/refreshToken.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/pages/api/auth/oauth/refreshToken.ts b/apps/web/pages/api/auth/oauth/refreshToken.ts index a302cc8bf6..c0c3d63815 100644 --- a/apps/web/pages/api/auth/oauth/refreshToken.ts +++ b/apps/web/pages/api/auth/oauth/refreshToken.ts @@ -55,6 +55,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const payload: OAuthTokenPayload = { userId: decodedRefreshToken.userId, + teamId: decodedRefreshToken.teamId, scope: decodedRefreshToken.scope, token_type: "Access Token", clientId: client_id,