The access token is valid for 1 hour. I know how to use a refresh token to update an access token. However, I don’t know how to check if the cognito access token has expired. Pattern1: Measure the time since token authentication by timer thread. -> Waste of CPU resources… Pattern2: Record the authentication time ..