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

20 lines
357 B
JavaScript

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() {
return providerId;
}
static credential(token) {
return {
token,
secret: '',
providerId,
};
}
}