2
0
mirror of synced 2025-01-15 00:46:53 +00:00
2017-09-24 16:35:15 +01:00

20 lines
383 B
JavaScript

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