Thank you for your question.
The issue you are having is your app users are experiencing a problem where after a successful login, they are prompted to log in again. You are asking which Amazon Cognito settings or configurations can be modified to prevent this.
Have your users received any errors when refreshing the token? If they have, check to see if the tokens have been revoked.
Check for the implicit grant type which results in a refresh token not returning per RFC standards. Per the enclosed documentation, “In an implicit grant, user pool tokens are exposed directly to the user. As a result, ID and access tokens have more potential to become compromised before they expire.”
I am listing recommendations for settings to check.
Check the InitiateAuth endpoint to ensure the token value listed is correct.
Check the value set for the UnusedAccountValidityDays.
Have users check to ensure they have confirmed their accounts as unconfirmed accounts will need to be authenticated again.
AWS CloudTrail will displays errors found in Amazon Cognito APIs and provides a log of requests made.
are federated IDPs consulted on token refresh via cognito user pools?Accepted Answerasked 6 months ago
Cognito - User Asked to Login to App Constantlyasked 6 months ago
Can i use Id token, access token, refresh token in User pool to identity pool?asked 5 months ago
Cognito OAuth Non Expiring TokenAccepted Answerasked 4 years ago
Restrict access to the users in groups via scope in cognito user poolAccepted Answerasked 9 months ago
how to increase expiration time of cognito identity pool credentialsasked 2 days ago
Cognito refresh token won't work.asked 3 years ago
React app with Cognito User pool: Not authorized to access APIasked 2 years ago
Retrieve access token after logging in to ALB with Cognitoasked 2 months ago
Cognito User pool with JWT tokenAccepted Answerasked 6 months ago