I'm using the playcanvas engine to make my game I would like to add the ability to log in and have but I cannot use the real time database for some odd reason. I also cant seem to find the tutorial I was using. Here is a link to my code as well as my references(Not all refs are on topic.).
Code(All In Folder):https://playcanvas.com/editor/code/719734?tabs=50532679,50538154,50532682,50532714,50532717,50532848,50537478,56029264
Ref1: https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.1.1/socket.io.min.js
Ref2: https://www.gstatic.com/firebasejs/8.6.8/firebase-app.js
Ref3: https://www.gstatic.com/firebasejs/8.6.8/firebase-analytics.js
Ref4: https://www.gstatic.com/firebasejs/7.2.3/firebase-database.js