I'm working on a web application, and currently, am trying to send some Firebase google authentication information (basically, an e-mail or unique ID) into an external database hosted on my server. The problem is, I have no idea what I should be storing in my database, or where I should be writing code to store it. Normally, when I'd create a form in HTML, I would write up some PHP to send things like a name and store it. But this seems to be a lot more complicated. I'm a very new beginner with Firebase, PHP, etc., and could really use some guidance. Below is my Firebase code for logging in with a Google account. I apologize if I've made a mistake somewhere in it -- I've been using tutorials online as a start.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: [apiKey goes here]
authDomain: [authDomain goes here]
databaseURL: [database URL goes here]
projectId: [projectID goes here]
storageBucket: [""]
messagingSenderId: [""]
};
firebase.initializeApp(config);
</script>
<script src="https://cdn.firebase.com/libs/firebaseui/2.6.3/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/2.6.3/firebaseui.css" />
<script type="text/javascript">
// FirebaseUI config.
var uiConfig = {
signInSuccessUrl: 'loggedIn.html',
signInOptions: [
// Leave the lines as is for the providers you want to offer your users.
firebase.auth.GoogleAuthProvider.PROVIDER_ID
],
// Terms of service url.
tosUrl: '<your-tos-url>'
};
// Initialize the FirebaseUI Widget using Firebase.
var ui = new firebaseui.auth.AuthUI(firebase.auth());
// The start method will wait until the DOM is loaded.
ui.start('#firebaseui-auth-container', uiConfig);
</script>
<body>
<div id="firebaseui-auth-container"></div>
</body>
</html>