mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps
This commit is contained in:
@@ -59,11 +59,11 @@ export default class User {
|
||||
* PROPERTIES
|
||||
*/
|
||||
|
||||
get displayName(): String|null {
|
||||
get displayName(): String | null {
|
||||
return this._valueOrNull('displayName');
|
||||
}
|
||||
|
||||
get email(): String|null {
|
||||
get email(): String | null {
|
||||
return this._valueOrNull('email');
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export default class User {
|
||||
return this._valueOrFalse('isAnonymous');
|
||||
}
|
||||
|
||||
get photoURL(): String|null {
|
||||
get photoURL(): String | null {
|
||||
return this._valueOrNull('photoURL');
|
||||
}
|
||||
|
||||
@@ -112,6 +112,15 @@ export default class User {
|
||||
return this._auth._interceptUserValue(this._auth._native.link(credential.provider, credential.token, credential.secret));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param providerId
|
||||
* @return {Promise.<TResult>|*}
|
||||
*/
|
||||
unlink(providerId: string) {
|
||||
return this._auth._interceptUserValue(FirebaseAuth.unlink(providerId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-authenticate a user with a third-party authentication provider
|
||||
* @return {Promise} A promise resolved upon completion
|
||||
|
||||
Reference in New Issue
Block a user