2
0
mirror of synced 2025-01-28 07:05:00 +00:00
2017-09-24 16:35:15 +01:00

20 lines
376 B
JavaScript

const providerId = 'password';
export default class EmailAuthProvider {
constructor() {
throw new Error('`new EmailAuthProvider()` is not supported on the native Firebase SDKs.');
}
static get PROVIDER_ID() {
return providerId;
}
static credential(email, password) {
return {
token: email,
secret: password,
providerId,
};
}
}