mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 11:16:18 +08:00
[auth] update provider constructor errors
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user