add teamId when refreshing access token (#13159)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Carina Wollendorfer
2024-01-11 21:43:15 +00:00
committed by GitHub
co-authored by CarinaWolli Keith Williams
parent f25605ef4d
commit 710a1a7d38
@@ -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,