From 77049ecd4e3fc57643ed45c47ac3f80316d2bb43 Mon Sep 17 00:00:00 2001 From: Robert Hall Date: Fri, 27 Jan 2023 09:45:47 -0600 Subject: [PATCH] fix scaffolding for oauth --- packages/cli/templates/destinations/oauth2-auth/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/templates/destinations/oauth2-auth/index.ts b/packages/cli/templates/destinations/oauth2-auth/index.ts index 3681f44eb7..426f43ad06 100644 --- a/packages/cli/templates/destinations/oauth2-auth/index.ts +++ b/packages/cli/templates/destinations/oauth2-auth/index.ts @@ -26,7 +26,7 @@ const destination: DestinationDefinition = { }) }) - return { accessToken: res.body.access_token } + return { accessToken: res.data.access_token } } }, extendRequest({ auth }) {