Graphql Api and Auth added on a brand new project.
I go to Amplify console -> myapp -> api -> GraphQL API and click on View in AppSync. On the run query part, I run A sample query like this:
{
listTodos {
items {
name
}
}
}
And the response is a UnauthorizedException. This is expected and working right.
Then, if I log in with a cognito user, the response is some example TODOS. This is also fine.
If I go to Cognito and disable the user, I can still run the query. I was a expecting an unauthorized or something else than actually being able to query for my data (as the user is disabled).