From 939c58692b22f9143e9ed1b1a5b36322507d0414 Mon Sep 17 00:00:00 2001 From: Charles Etieve Date: Fri, 20 May 2022 16:46:02 +0900 Subject: [PATCH] Fix android phone authentication --- .../kotlin/dev/gitlive/firebase/auth/credentials.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt b/firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt index d45066c3f..fa05f1c13 100644 --- a/firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt +++ b/firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt @@ -91,9 +91,6 @@ actual class PhoneAuthProvider(val android: com.google.firebase.auth.PhoneAuthPr override fun onCodeSent(verificationId: String, forceResending: PhoneAuthProvider.ForceResendingToken) { verificationProvider.codeSent { android.verifyPhoneNumber(phoneNumber, verificationProvider.timeout, verificationProvider.unit, verificationProvider.activity, this, forceResending) } - } - - override fun onCodeAutoRetrievalTimeOut(verificationId: String) { launch { val code = verificationProvider.getVerificationCode() try { @@ -104,6 +101,9 @@ actual class PhoneAuthProvider(val android: com.google.firebase.auth.PhoneAuthPr } } + override fun onCodeAutoRetrievalTimeOut(verificationId: String) { + } + override fun onVerificationCompleted(credential: com.google.firebase.auth.PhoneAuthCredential) { response.complete(Result.success(AuthCredential(credential))) }