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
23 lines (20 loc) • 425 B
JavaScript
/**
*
* OAuthProvider representation wrapper
*/
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() {
return providerId;
}
static credential(idToken, accessToken) {
return {
token: idToken,
secret: accessToken,
providerId
};
}
}