Skip to content

Commit

Permalink
update util
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcafee committed Oct 6, 2023
1 parent bdf1256 commit fb319bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api-graphql/src/utils/resolveLibraryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AmplifyClassV6 } from '@aws-amplify/core';
* @internal
*/
export const resolveLibraryOptions = (amplify: AmplifyClassV6) => {
const { headers, withCredentials } = amplify.libraryOptions?.API?.GraphQL;
const headers = amplify.libraryOptions?.API?.GraphQL?.headers;
const withCredentials = amplify.libraryOptions?.API?.GraphQL?.withCredentials;
return { headers, withCredentials };
};

0 comments on commit fb319bd

Please sign in to comment.