[auth] update provider constructor errors
This commit is contained in:
parent
61d963ad62
commit
c8a37f6282
|
@ -2,7 +2,7 @@ const providerId = 'password';
|
|||
|
||||
export default class EmailAuthProvider {
|
||||
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() {
|
||||
|
|
|
@ -2,7 +2,7 @@ const providerId = 'facebook';
|
|||
|
||||
export default class FacebookAuthProvider {
|
||||
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() {
|
||||
|
|
|
@ -2,7 +2,7 @@ const providerId = 'github';
|
|||
|
||||
export default class GithubAuthProvider {
|
||||
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() {
|
||||
|
|
|
@ -2,7 +2,7 @@ const providerId = 'google';
|
|||
|
||||
export default class GoogleAuthProvider {
|
||||
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() {
|
||||
|
|
|
@ -2,7 +2,7 @@ const providerId = 'phone';
|
|||
|
||||
export default class PhoneAuthProvider {
|
||||
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() {
|
||||
|
|
|
@ -2,7 +2,7 @@ const providerId = 'twitter';
|
|||
|
||||
export default class TwitterAuthProvider {
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue