2
0
mirror of synced 2025-01-11 06:35:51 +00:00
2018-01-25 18:25:39 +00:00

28 lines
512 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,
};
}
}