Create a function that helps us to deal with promises that can time out. It can be used in all the places where we use timeouts, but it's not a good idea to prioritize it now - let's do it incrementally.
https://linear.app/comm/issue/ENG-10199/logout-is-not-working-as-expected