Firebase Signin with phone verification and user profile creation with could functions : <p>I'm creating a server side rendered Angular application and i'am using firebase for backend tasks.</p>

<p>I would like to know the best ways to achieve my authentication requirement that are as follow : </p>

<ul>
<li>user enter his name, email, password..etc.</li>
<li>After hiting submit button a SMS must be sent to the user phone number with a 6 digits code.</li>
<li>the user enter the code provided by sms, his account is created and his is redirected to login page.</li>
</ul>

<p>What is the best ways to create the user profile ? Cloud functions or client side ? how can i perfome SMS verification with Firebase ?</p>
