20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
const providerId = 'google';
|
|
|
|
export default class GoogleAuthProvider {
|
|
constructor() {
|
|
throw new Error('`new GoogleAuthProvider()` is not supported on the native Firebase SDKs.');
|
|
}
|
|
|
|
static get PROVIDER_ID() {
|
|
return providerId;
|
|
}
|
|
|
|
static credential(token, secret) {
|
|
return {
|
|
token,
|
|
secret,
|
|
providerId,
|
|
};
|
|
}
|
|
}
|