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

24 lines
462 B
JavaScript
Raw Normal View History

2017-11-17 14:22:46 +00:00
/**
* @flow
* EmailAuthProvider representation wrapper
*/
const providerId = 'google.com';
export default class GoogleAuthProvider {
constructor() {
throw new Error('`new GoogleAuthProvider()` is not supported on the native Firebase SDKs.');
}
2017-11-17 14:22:46 +00:00
static get PROVIDER_ID(): string {
return providerId;
}
2017-11-17 14:22:46 +00:00
static credential(token: string, secret: string): AuthCredential {
return {
token,
secret,
providerId,
};
}
}