const admin = require('firebase-admin');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
let fs = admin.firestore();
let auth = admin.auth();
async function start (object){
const info = await fs.collection('users').doc(object.uid).get();
if (!liam.exists) {
console.log('No document');
} else {
console.table([info.data()]);
}
}
I want to send console.table([info.data()]);
data to the webpage table, I can't send it to HTML with <script>
tag and send data with document.getElement
.
All I wanted is just send to viw in webpage insted of console, how can I do that?