DataStore does not sync if using owner @auth #13769
Labels
DataStore
Related to DataStore category
pending-maintainer-response
Issue is pending a response from the Amplify team.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
DataStore
Amplify Version
v6
Amplify Categories
api
Backend
Amplify CLI
Environment information
Describe the bug
I have an application that uses AppSync DataStore with a model
Tenant
and anowner
as authorisation method at field level.When I submit a query via the AWS GUI, everything works as expected.
In the application, however, the sync throws a warning and no data is synchronised at all.
DataStore - User is unauthorised to query syncTenants with auth mode userPool. No data could be returned.
In #6625 switching to Cognito as the authentication method should help - however, this is already set for me.
"aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS",
Expected behavior
All data is also synchronised via the datastore
Reproduction steps
await DataStore.start()
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
"aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS",
Manual configuration
No response
Additional configuration
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: