I would like to make the following scenario in my web and mobile app:
- user opens an app (now web, later mobile) without Cognito login, creates few entities, views analytics provided by the service (mostly data loaded through Appsync).
- Then the user goes through Cognito user registration flow in our service -> all the entities created by him on the first step are saved under his account.
- If the user is logged in, show him information attached to his account.
I currently have an API Gateway with resource under it redirecting to Appsync.
The Cognito authorizer is currently attached to the API Gateway.
It seems that to allow #1 action described above I need to remove/disable Cognito authorizer on the Api-gateway level.
But how then should I integrate Cognito to the application?