My application refreshes the session every 5 seconds to check if the cognito user is still enabled.
In AWS IOS SDK there is a clearSession Method in