2
0
mirror of synced 2025-01-21 11:51:03 +00:00

28 lines
520 B
JavaScript
Raw Normal View History

2018-03-23 14:26:11 +00:00
/**
* @flow
* FacebookAuthProvider representation wrapper
*/
import type { AuthCredential } from '../types';
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(): string {
return providerId;
}
static credential(token: string): AuthCredential {
return {
token,
secret: '',
providerId,
};
}
}