Junio Branco
Junio Branco
@SamMatthewsIsACommonName , I was having the same issue. I have created a pull request to resolve this precise issue : https://github.com/fullstackreact/react-native-firestack/pull/304 seems to be due to a variable name mismatch.
@SamMatthewIsACommonName I see, so in V3 it shouldnt be using auth/? Or simply the auth/ format was changed but the ios files were not updated as per the latest :)?...
@SamMatthewsIsACommonName So I just tried to remove "auth/" as such : ` return promisify('signInWithEmail', FirestackAuth)(email, password); ` And my error code is: > Object {code: "272115", message: "The email address...
Sorry @SamMatthewsIsACommonName I just checked.. it was still running the code with auth/ so after fresh restart, the error object has an additional attribute after removing "auth/" although error code...
Without my changes and without auth/ the result is the following: > Object {error: "createUserWithEmailError", name: 17007, description: "The email address is already in use by another account."}
@SamMatthewsIsACommonName thats right, 17007 is coming as name rather than code. If I assign it as code it will trigger a lowerCase function not applicable in javascript. Because the code...
@SamMatthewsIsACommonName I just did this : ` @"code": [NSString stringWithFormat:@"%d", [error code]]` and it give sthe 17007 now. I will try to add back auth/ and see what comes up
@SamMatthewsIsACommonName without auth/ and with the fix of casting the result looks better: > Object {code: "17007", message: "The email address is already in use by another account."}
I shall update my PR with the casting change Update: PR updated.
@SamMathewIsACommonName I just updated my PR since I was also having the following issue when using signWithEmailAndPassword : The commit follows the same changes I did for create a user...