The documentation Convert an anonymous account to a permanent account indicates 3 steps to the process, however step 2 seems to violate step 1.
- When the user signs up, complete the sign-in flow for the user's authentication provider up to, but not including, calling one of the Auth.signInWith methods. For example, get the user's Google ID token, Facebook access token, or email address and password.
- Get an AuthCredential for the new authentication provider:
var credential = firebase.auth.FacebookAuthProvider.credential( response.authResponse.accessToken);
- Pass the AuthCredential object to the sign-in user's link method...
My question is re: step 2. response
exists only after calling one of the Auth.signInWith
methods that step 1 says not to do. How does one link an anonymous account with an oAuth account?
.linkWithPopup(provider)
method." That's all you gotta do. ...not sure what the existing steps shown above are all about. – Ronnie Royston