title: Firebase phone number authentication, code is expired every time
body: <p>I have added firebase authentication in my application. It works fine if i add phone number of other user in my phone. But if i add mine phone number it sends OTP but when i enter that OTP every time it shows error "SMS code has expired".</p>
  
  <p>Is there any auto authentication? Is there something that i missing?</p>
  
  <p>I have used below code to send OTP</p>
  
  <pre><code> firebase.auth().signInWithPhoneNumber(this.state.countryCode + this.state.phoneNumber)
              .then(confirmResult =&gt; {
  
  
                  this.setState({
                      progressVisible: false
                  })
  
                  console.log("confirmResult is " + confirmResult)
  
                  AsyncStorage.setItem('CountryCode', this.state.countryCode);
                  AsyncStorage.setItem('PhoneNumber', this.state.phoneNumber);
  
  
                  this.props.navigation.navigate("OtpScreen", {
                      confirmResult, isConnected: this.state.isConnected
                  })
              })
  </code></pre>
  
  <p>I have used below code to verify OTP</p>
  
  <pre><code> this.state.confirmResult.confirm(this.state.otpText)
                  .then(user =&gt; {
  
                      // this.setState({
                      //     progressVisible: false
                      // })
                      console.log("Debug starts, 2");
                      this.hitAuthApi()
  
                  })
                  .catch(error =&gt; {
                      this.setState({
                          progressVisible: false
                      })
                      setTimeout(() =&gt; {
                          Alert.alert("Error" + error);
                      }, 100)
                  });
  </code></pre>