mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 20:10:05 +08:00
[android] link/linkPassword
This commit is contained in:
@@ -4,7 +4,6 @@ import { promisify } from './../../utils';
|
||||
const FirebaseAuth = NativeModules.RNFirebaseAuth;
|
||||
|
||||
// TODO refreshToken property
|
||||
// TODO reload() method
|
||||
|
||||
/**
|
||||
* @url https://firebase.google.com/docs/reference/js/firebase.User
|
||||
@@ -112,6 +111,14 @@ export default class User {
|
||||
return this._auth._interceptUserValue(FirebaseAuth.delete());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param credential
|
||||
*/
|
||||
link(credential: CredentialType) {
|
||||
return this._auth._interceptUserValue(FirebaseAuth.link(credential.provider, credential.token, credential.secret));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reload the current user
|
||||
* @return {Promise}
|
||||
@@ -141,15 +148,6 @@ export default class User {
|
||||
return promisify('getToken', FirebaseAuth, 'auth/')();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param credential
|
||||
*/
|
||||
link(credential: CredentialType) {
|
||||
return promisify('link', FirebaseAuth, 'auth/')(credential.provider, credential.token, credential.secret);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update the current user's email
|
||||
* @param {string} email The user's _new_ email
|
||||
|
||||
Reference in New Issue
Block a user