2017-09-21 17:42:09 +01:00
|
|
|
const providerId = 'phone';
|
|
|
|
|
|
|
|
export default class PhoneAuthProvider {
|
2017-09-24 13:50:00 +01:00
|
|
|
constructor() {
|
2017-09-24 16:35:15 +01:00
|
|
|
throw new Error('`new PhoneAuthProvider()` is not supported on the native Firebase SDKs.');
|
2017-09-24 13:50:00 +01:00
|
|
|
}
|
|
|
|
|
2017-09-21 17:42:09 +01:00
|
|
|
static get PROVIDER_ID() {
|
|
|
|
return providerId;
|
|
|
|
}
|
|
|
|
|
|
|
|
static credential(verificationId, code) {
|
|
|
|
return {
|
|
|
|
token: verificationId,
|
|
|
|
secret: code,
|
|
|
|
providerId,
|
|
|
|
};
|
|
|
|
}
|
2017-09-24 13:50:00 +01:00
|
|
|
}
|