Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: AUTH_TYPE.AWS_IAM,
credentials: async () => {
return await Auth.currentCredentials();
},
},
disableOffline: true
},
{
cache,
link: ApolloLink.from([
stateLink,
createAppSyncLink({
url: aws_vars.graphql_endpoint,
region: aws_vars.region,
auth: {
type: AUTH_TYPE.AWS_IAM,
credentials: async () => {
return await Auth.currentCredentials();
},
},
complexObjectsCredentials: () => Auth.currentCredentials()
})
])
}
);
const ApolloWraper = props => (
{props.children}
defaults: {
todos: []
},
resolvers: {
}
});
cache.writeData({ id: 'hey', data: { name: 'alan' } });
const client = new AWSAppSyncClient(
{
url: aws_vars.graphql_endpoint,
region: aws_vars.region,
auth: {
type: AUTH_TYPE.AWS_IAM,
credentials: async () => {
return await Auth.currentCredentials();
},
},
disableOffline: true
},
{
cache,
link: ApolloLink.from([
stateLink,
createAppSyncLink({
url: aws_vars.graphql_endpoint,
region: aws_vars.region,
auth: {
type: AUTH_TYPE.AWS_IAM,
credentials: async () => {