I have successfully implemented authentication for Email/Password and social login with Facebook/Google. Now, my goal is to link the user's account on Firebase if they sign up with Facebook/Google after previously signing up with either Facebook/Google or Email.
Currently, I am handling the 'auth/email-already-in-use'
error code.
Although I have managed the separate parts, I am facing issues linking accounts. Despite using the provided code, nothing seems to get linked on Firebase.
I am utilizing Vue.js for the Frontend, but the authentication process is primarily JavaScript-based. Feel free to ask for further clarification if needed.
An error I encounter when clicking the signup button for Email/Password is:
TypeError: self.googleSignin(...) is undefined
Below is a portion of the code:
<template>
<div class="row">
<div class="display-block">
<div class="row">
<div class="input-field col s12">
<input id="email" type="email" v-model="email" class="validate email-input-field" placeholder="Email Address">
<i class="material-icons prefix">email</i>
</div>
</div>
// More HTML Code...
</div>
<!-- end display block -->
</div>
</template>
// Javascript Code ...