mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 12:06:47 +08:00
[auth] fix incorrect arguments
This commit is contained in:
@@ -173,12 +173,12 @@ export default class PhoneAuthListener {
|
||||
|
||||
/**
|
||||
* Internal code sent event handler
|
||||
* @param verificationId
|
||||
* @private
|
||||
* @param credential
|
||||
*/
|
||||
_codeSentHandler(verificationId) {
|
||||
_codeSentHandler(credential) {
|
||||
const snapshot: PhoneAuthSnapshot = {
|
||||
verificationId,
|
||||
verificationId: credential.verificationId,
|
||||
code: null,
|
||||
error: null,
|
||||
state: 'sent',
|
||||
@@ -198,12 +198,12 @@ export default class PhoneAuthListener {
|
||||
|
||||
/**
|
||||
* Internal code auto retrieve timeout event handler
|
||||
* @param verificationId
|
||||
* @private
|
||||
* @param credential
|
||||
*/
|
||||
_codeAutoRetrievalTimeoutHandler(verificationId) {
|
||||
_codeAutoRetrievalTimeoutHandler(credential) {
|
||||
const snapshot: PhoneAuthSnapshot = {
|
||||
verificationId,
|
||||
verificationId: credential.verificationId,
|
||||
code: null,
|
||||
error: null,
|
||||
state: 'timeout',
|
||||
|
||||
Reference in New Issue
Block a user