You can log the user out of their Cognito session by using the logout endpoint. You can redirect the user to this URL after logging them out of your app.