示例#1
0
        public async Task <IFirebaseUser> SignInWithPhoneNumberVerificationCodeAsync(string verificationCode)
        {
            try {
                var credential = await _phoneNumberAuth.GetCredentialAsync(verificationCode);

                return(await SignInWithCredentialAsync(credential));
            } catch (NSErrorException e) {
                throw new FirebaseException(e.Error?.LocalizedDescription);
            }
        }
        public async Task <IFirebaseUser> SignInWithPhoneNumberVerificationCodeAsync(string verificationCode)
        {
            var credential = await _phoneNumberAuth.GetCredentialAsync(verificationCode);

            return(await SignInWithCredentialAsync(credential));
        }