title: Firebase Auth: How to get User phone number/currentUser in redirected page using Laravel?
body: <p>I don't know how possible what i am trying to do is or if there is a better approach to it. I have integrated the firebase phone number authentication in my system and it works Ok but i want it just for verifying a user's phone number after which it will redirect the user the the main signup page where the user will enter other details that will be saved in my database. I am using the firebaseUi which renders the Ui in a div</p>
  
  <pre><code>&lt;h1&gt;Welcome to My Awesome App&lt;/h1&gt;
  &lt;div id="firebaseui-auth-container"&gt;&lt;/div&gt;
  &lt;div id="loader"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How do i get the verified number/currentUser to display on the redirected page. 
  I have tried this from the <a href="https://firebase.google.com/docs/auth/web/manage-users" rel="nofollow noreferrer">Manage User doc</a></p>
  
  <pre><code>var user = firebase.auth().currentUser;
  
  if (user) {
    // User is signed in.
  } else {
    // No user is signed in.
  }
  </code></pre>
  
  <p>and to get it in my redirected page i have this in my controller</p>
  
  <pre><code>$this['authUser'] = Request::get('user');
  </code></pre>
  
  <p>Then in twig i have 
  <code>{{ authUser }}</code> but it is returning null when i dial and dump</p>