This commit is contained in:
Salakar
2017-07-17 17:35:16 +01:00
4 changed files with 71 additions and 4 deletions

View File

@@ -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