Truy cập vào bảng điều khiển

Phone number auth provider.

example
// 'recaptcha-container' is the ID of an element in the DOM.
var applicationVerifier = new firebase.auth.RecaptchaVerifier(
    'recaptcha-container');
var provider = new firebase.auth.PhoneAuthProvider();
provider.verifyPhoneNumber('+16505550101', applicationVerifier)
    .then(function(verificationId) {
      var verificationCode = window.prompt('Please enter the verification ' +
          'code that was sent to your mobile device.');
      return firebase.auth.PhoneAuthProvider.credential(verificationId,
          verificationCode);
    })
    .then(function(phoneCredential) {
      return firebase.auth().signInWithCredential(phoneCredential);
    });
param

The Firebase Auth instance in which sign-ins should occur. Uses the default Auth instance if unspecified.

Implements

Index

Constructors

constructor

Properties

providerId

providerId: string

Static PHONE_SIGN_IN_METHOD

PHONE_SIGN_IN_METHOD: string

This corresponds to the sign-in method identifier as returned in