Skip to content

Phone auth on android - error when confirming code 'auth/session-expired' #530

@omgo

Description

@omgo

Issue

Hello, I'm using phone auth, and it works on ios, but dont on android. After confirming code I get the error auth/session-expired - ofc I understand that is it mean, but I don't understand why, and how to fix it. Could you help me?

sendCode() {
  firebase.auth().signInWithPhoneNumber(this.store.phoneNumber)
    .then(confirmResult => {
      this.store.setConfirmResult(confirmResult)
    }).catch(error => {
      console.log(error)
    })
}

authorize() {
  this.store.confirmResult.confirm(this.store.code)
    .then(user => {
      console.log(user)
    })
    .catch(error => {
      console.log(error)
    })
}

Environment

  1. Application Target Platform: Android
  1. Development Operating System: macOS Sierra
  1. Build Tools: Android Studio 2.3.3, Android SDK 26.1.1
  1. React Native version: 0.49.3
  1. RNFirebase Version: 3.0.3
  1. Firebase Module: auth (phone)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions