mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[auth][types] Fix incorrect return type for createUserAndRetrieveDataWithEmailAndPassword #862
This commit is contained in:
@@ -251,7 +251,7 @@ export default class Auth extends ModuleBase {
|
||||
createUserAndRetrieveDataWithEmailAndPassword(
|
||||
email: string,
|
||||
password: string
|
||||
): Promise<User> {
|
||||
): Promise<UserCredential> {
|
||||
return getNativeModule(this)
|
||||
.createUserAndRetrieveDataWithEmailAndPassword(email, password)
|
||||
.then(userCredential => this._setUserCredential(userCredential));
|
||||
|
||||
Reference in New Issue
Block a user