Closed kuoaid closed 9 months ago
Update:
After 24 hours, the schema magically turned into
@auth(rules: [{allow: private}])
Which explains the behavior.
However, never was the schema defined this way. Please investigate.
Hello. Please open a support case if you are still experiencing the issue. I would also recommend opening an issue with AWS Amplify to investigate the model schema.
We are having auth problems when running queries from the console and from a lambda function written in Node.JS.
We expect the correct data to be returned, but we keep getting a "not authorized" message.
Specifically...
With the following schema:
Generated from Amplify Datastore:
Running the query:
From the AppSync console via either apiKey or IAM, returns:
While a lambda function that runs the same query returns the same thing. The lambda function is currently authorizing via the API key.
About the API key: The API key is valid. The AppSync console does not work before or after a successful key rotation.