[auth] update provider constructor errors

This commit is contained in:
Salakar 2017-09-24 16:35:15 +01:00
parent 61d963ad62
commit c8a37f6282
6 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ const providerId = 'password';
export default class EmailAuthProvider { export default class EmailAuthProvider {
constructor() { constructor() {
throw new Error('`new EmailAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new EmailAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {

View File

@ -2,7 +2,7 @@ const providerId = 'facebook';
export default class FacebookAuthProvider { export default class FacebookAuthProvider {
constructor() { constructor() {
throw new Error('`new FacebookAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new FacebookAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {

View File

@ -2,7 +2,7 @@ const providerId = 'github';
export default class GithubAuthProvider { export default class GithubAuthProvider {
constructor() { constructor() {
throw new Error('`new GithubAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new GithubAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {

View File

@ -2,7 +2,7 @@ const providerId = 'google';
export default class GoogleAuthProvider { export default class GoogleAuthProvider {
constructor() { constructor() {
throw new Error('`new GoogleAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new GoogleAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {

View File

@ -2,7 +2,7 @@ const providerId = 'phone';
export default class PhoneAuthProvider { export default class PhoneAuthProvider {
constructor() { constructor() {
throw new Error('`new PhoneAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new PhoneAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {

View File

@ -2,7 +2,7 @@ const providerId = 'twitter';
export default class TwitterAuthProvider { export default class TwitterAuthProvider {
constructor() { constructor() {
throw new Error('`new TwitterAuthProvider()` is not supported on react-native-firebase.'); throw new Error('`new TwitterAuthProvider()` is not supported on the native Firebase SDKs.');
} }
static get PROVIDER_ID() { static get PROVIDER_ID() {