The AWS Mobile React Starter Kit is great, but it doesn't let users see anything without logging in first. I'd like to build a web app where unauthenticated users can query parts of the database, but can't make any edits. I've tried poking around in the AWS configuration, but so far I've only broken the app, not gotten it to do what I want.
Can anyone advise with the general steps to follow?
What I've tried:
- Commenting out the first PublicRoute element in
/src/index.js
, then modifying the last one to redirect to /main/home instead of /login - Changing MobileHub configuration of the API from Private to Protected
- Created a duplicate role (that I planned to remove write permissions from, once it worked) and selected it for unauthenticated connections in Cognito
- Looked around for clues in the \awsmobilejs directory of the project folder, without luck