.then(submitSms)
                  
                  
                                  .catch(handleSubmitSmsError)
                  
                  
                                  .then(createUser)
                  
                  
                                  .catch(handleCreateUserError)
                  
                  
                                  .then(setPassword)
                  
                  
                                  .catch(handleSetPasswordError)
                  
                  
                                  .then(login)
                  
                  
                                  .catch(handleLoginError)
                  
                  
                                  .then(setAccessToken)
                  
                  
                                  .then(redirect)
                  
                  
                  На деле это будет как-то так и нахрена бы оно нужно было?
                  
                  
                
что именно? не отлавливать ошибки на каждый запрос?
Обсуждают сегодня