From d7a832b7c7a17e01970ef479555e9799e07c5a41 Mon Sep 17 00:00:00 2001 From: Salakar Date: Sat, 30 Sep 2017 20:07:00 +0100 Subject: [PATCH] [auth] fix incorrect arguments --- lib/modules/auth/PhoneAuthListener.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/modules/auth/PhoneAuthListener.js b/lib/modules/auth/PhoneAuthListener.js index cd32404c..4ad253b5 100644 --- a/lib/modules/auth/PhoneAuthListener.js +++ b/lib/modules/auth/PhoneAuthListener.js @@ -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',