have got a provider async function that creates a new user using angularfire2/auth...I have been tracking the progress with console logs as chrome doesn't work in promises very well (or I can't get it to work) and found that I am going into the "then" component of the promise and getting a uid so the user is being created. However I then call another async function (from within the "then" function) that creates a profile object on the database but this function never gets called...don't know what happens.
I find that the promised is not all that's promised...has anyone got an example of running a promise after a promise?
Each function works well on it's own, just not combined.
I had thought of adding it to the calling function of the button click event but as the log has shown me, the function returns before the 'then' completes.
Is there any way of blocking the promise or of stopping the function from returning until the promise has been completed. I have tried the async/ await on the function with the same problem.