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) 533 B
/** * @flow * OAuthProvider representation wrapper */ import type { AuthCredential } from '../types'; const providerId = 'oauth'; export default class OAuthProvider { constructor() { throw new Error( '`new OAuthProvider()` is not supported on the native Firebase SDKs.' ); } static get PROVIDER_ID(): string { return providerId; } static credential(idToken: string, accessToken: string): AuthCredential { return { token: idToken, secret: accessToken, providerId, }; } }