From f41c5c4331e821c419d65eee10ab97274565120c Mon Sep 17 00:00:00 2001 From: Aaron S Date: Tue, 24 Oct 2023 17:38:47 -0500 Subject: [PATCH] fix(api-graphql): Subscription authtype overriding --- packages/api-graphql/src/internals/InternalGraphQLAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-graphql/src/internals/InternalGraphQLAPI.ts b/packages/api-graphql/src/internals/InternalGraphQLAPI.ts index efa9a846828..c6cacebe038 100644 --- a/packages/api-graphql/src/internals/InternalGraphQLAPI.ts +++ b/packages/api-graphql/src/internals/InternalGraphQLAPI.ts @@ -375,7 +375,7 @@ export class InternalGraphQLAPIClass { variables, appSyncGraphqlEndpoint: config?.endpoint, region: config?.region, - authenticationType: config?.defaultAuthMode, + authenticationType: authMode ?? config?.defaultAuthMode, apiKey: config?.apiKey, additionalHeaders, },