2017-10-16 10:12:40 +00:00
|
|
|
const providerId = 'twitter.com';
|
2017-09-21 16:42:09 +00:00
|
|
|
|
|
|
|
export default class TwitterAuthProvider {
|
2017-09-24 12:50:00 +00:00
|
|
|
constructor() {
|
2017-09-24 15:35:15 +00:00
|
|
|
throw new Error('`new TwitterAuthProvider()` is not supported on the native Firebase SDKs.');
|
2017-09-24 12:50:00 +00:00
|
|
|
}
|
|
|
|
|
2017-09-21 16:42:09 +00:00
|
|
|
static get PROVIDER_ID() {
|
|
|
|
return providerId;
|
|
|
|
}
|
|
|
|
|
|
|
|
static credential(token, secret) {
|
|
|
|
return {
|
|
|
|
token,
|
|
|
|
secret,
|
|
|
|
providerId,
|
|
|
|
};
|
|
|
|
}
|
2017-09-24 12:50:00 +00:00
|
|
|
}
|