Closed ngocnt1 closed 4 years ago
I solved this by using the firebase rest api:
request({
url: 'https://identitytoolkit.googleapis.com/v1/accounts:update?key=' + environment.firebaseApi,
method: "POST",
headers: { "Content-Type": "application/json" },
content: JSON.stringify({
idToken: token,
email: email,
password: password,
returnSecureToken: true
})
}).then((response) => {
resolve(response);
}, (e) => {
console.log('linkWithEmail Request Error: ' + e);
});
You need to pass in the auth token id of the current user.
in firebase.ios.ts , i don't see implementation for linkWithCredentialCompletion for apple signin. i tried with my app, it always create separated apple sign-in credential on firebase instead of link it to current user, am i wrong somewhere? @EddyVerbruggen