2
0
mirror of synced 2025-01-12 07:04:21 +00:00
2017-11-23 17:29:40 +00:00

26 lines
506 B
JavaScript

/**
* @flow
* GithubAuthProvider representation wrapper
*/
import type { AuthCredential } from '../../../types';
const providerId = 'github.com';
export default class GithubAuthProvider {
constructor() {
throw new Error('`new GithubAuthProvider()` is not supported on the native Firebase SDKs.');
}
static get PROVIDER_ID(): string {
return providerId;
}
static credential(token: string): AuthCredential {
return {
token,
secret: '',
providerId,
};
}
}