UNPKG

react-native-firebase-compiled

Version:

A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto

28 lines (23 loc) 545 B
/** * @flow * PhoneAuthProvider representation wrapper */ import type { AuthCredential } from '../types'; const providerId = 'phone'; export default class PhoneAuthProvider { constructor() { throw new Error( '`new PhoneAuthProvider()` is not supported on the native Firebase SDKs.' ); } static get PROVIDER_ID(): string { return providerId; } static credential(verificationId: string, code: string): AuthCredential { return { token: verificationId, secret: code, providerId, }; } }