async touchId() {
    const user = await LocalStorage.get('user')
    const password = await LocalStorage.get('password')

    if (user && user.username && password) {
      try {
        const isSupported = await TouchID.isSupported()

        if (isSupported) {
          const isAuthenticated = await TouchID.authenticate('Please log in.')
          this.finalizeLogin(user, password)
        }
      } catch(error) {
        AlertIOS.alert("Failed to log in.")
      }
    }
  }
/**
   * If the user has already logged previous, then the user's info should be stored in local storage, so user should be able to log in with touch id now.
   * Does not work in iOS simulator.
   *
   * @return {void}
   */
If the user has already logged previous, then the user's info should be stored in local storage, so user should be able to log in with touch id now.
Does not work in iOS simulator.

@return {void}
If the user has already logged previous then the user ' s info should be stored in local storage so user should be able to log in with touch id now . Does not work in iOS simulator . @return { void }
async touchId() {
    const user = await LocalStorage.get('user')
    const password = await LocalStorage.get('password')
    if (user && user.username && password) {
      try {
        const isSupported = await TouchID.isSupported()
        if (isSupported) {
          const isAuthenticated = await TouchID.authenticate('Please log in.')
          this.finalizeLogin(user, password)
        }
      } catch(error) {
        AlertIOS.alert("Failed to log in.")
      }
    }
  }
async touchId ( ) { const user = await LocalStorage . get ( 'user' ) const password = await LocalStorage . get ( 'password' ) if ( user && user . username && password ) { try { const isSupported = await TouchID . isSupported ( ) if ( isSupported ) { const isAuthenticated = await TouchID . authenticate ( 'Please log in.' ) this . finalizeLogin ( user , password ) } } catch ( error ) { AlertIOS . alert ( "Failed to log in." ) } } }
If the user has already logged previous, then the user's info should be stored in local storage, so user should be able to log in with touch id now.
If the user has already logged previous then the user ' s info should be stored in local storage so user should be able to log in with touch id now .