title: Firebase Auth - ConfirmPasswordReset, how to grab oobcode from URL to pass thorugh function?
body: <p>I'm trying to implement a reset password Page on my website using firebase auth. I got the send email to reset password page working. Now from what I understand you get an email with a link that you need to click and on this email there will be a code that is needed to reset the password. Now I'm at a loss on how to grab said code from the url and already display it for the user on the field. Is it possible to have the code come in the body of the email and have the user input the code? If not, how do I grab the code from the url and input it for the user so the user can only input the password? My website is using vue and this is what I have so far</p>
  
  <pre><code>&lt;template&gt;
    &lt;div class="container"&gt;
      &lt;h3&gt;reset pw page&lt;/h3&gt;
      &lt;div class="row"&gt;
        &lt;form @submit.prevent="ResetPw()" class="col s12"&gt;
          &lt;div class="row"&gt;
            &lt;div class="input-field col s12"&gt;
              &lt;input type="password" id="password" v-model="password" /&gt;
              &lt;label&gt;Password&lt;/label&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="input-field col s12"&gt;
              &lt;input type="text" id="code" v-model="code" /&gt;
              &lt;label&gt;Code&lt;/label&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;button type="submit" class="btn"&gt;Submit&lt;/button&gt;
        &lt;/form&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import firebase from "firebase/app";
  export default {
    data() {
      return {
        password: "",
        code: ""
      };
    },
    methods: {
      ResetPw() {
        firebase
          .auth()
          .confirmPasswordReset(this.code, this.password)
          .then(() =&gt; {
            console.log(`Password Changed!`);
          })
          .catch(err =&gt; console.log(err));
      }
    }
  };
  &lt;/script&gt;
  </code></pre>
  
  <p>I think I got everything done, I just need to understand how to grab the oobcode from the link <a href="https://my-project.firebaseapp.com/__/auth/action?mode=" rel="nofollow noreferrer">https://my-project.firebaseapp.com/__/auth/action?mode=</a>&amp;oobCode=</p>