Firebase Kotlin SDK
Toggle table of contents
3.0.0-beta1
android
common
jvm
nonJvm
Platform filter
android
common
jvm
nonJvm
Switch theme
Search in API
Firebase Kotlin SDK
firebase-auth
/
com.google.firebase.auth
/
PhoneAuthProvider
/
Companion
/
getCredential
get
Credential
android
common
jvm
nonJvm
@
JvmStatic
actual
fun
getCredential
(
verificationId
:
String
,
smsCode
:
String
)
:
PhoneAuthCredential
(
source
)
expect
fun
getCredential
(
verificationId
:
String
,
smsCode
:
String
)
:
PhoneAuthCredential
(
source
)
A credential for the
smsCode
the user entered for
verificationId
.
@
JvmStatic
actual
fun
getCredential
(
verificationId
:
String
,
smsCode
:
String
)
:
PhoneAuthCredential
(
source
)
actual
fun
getCredential
(
verificationId
:
String
,
smsCode
:
String
)
:
PhoneAuthCredential
(
source
)