react-native-firebase/lib/modules/auth/providers/FacebookAuthProvider.js

20 lines
363 B
JavaScript
Raw Normal View History

const providerId = 'facebook.com';
export default class FacebookAuthProvider {
constructor() {
throw new Error('`new FacebookAuthProvider()` is not supported on the native Firebase SDKs.');
}
static get PROVIDER_ID() {
return providerId;
}
static credential(token) {
return {
token,
secret: '',
providerId,
};
}
}