-
Couldn't load subscription status.
- Fork 408
Description
Describe your environment:
-2011 Macbook Pro
-OS High Sierra v10.13.3
-Sublime Version 3.0, Build 3143
-Node 7.8.0
-Firebase package v4.6.0
-Firebase-admin package v5.4.3
-Firebase Database, Firebase Storage
First let me say that I contacted the Firebase Technical Support team https://firebase.google.com/support/contact/troubleshooting/ about this issue and I also posted a question on Stackoverflow https://stackoverflow.com/questions/47081163/firebase-node-js-auto-complete-doesnt-show-auth-or-its-accompanying-method about it but no one answered it. I'm not sure why when pressing the ink it won't take you to the page but if you copy and paste it into the browser it will work.
The Firebase tech team member said they couldn't resolve it and told me to file a bug report at this repo.
Describe your problem:
I have installed the Firebase and Firebase-admin modules into the app.js file. I want to use these 2 methods:
.createCustomToken()
.authenticateWithCustomToken()
The problem is they both get called on a .auth() object and I cannot access the .auth() object to access them:
var myCustomToken = '12345'
myCustomToken = firebaseAdmin.auth().createCustomToken(myCustomToken) //firebaseAdmin.auth()
firebase.auth().authenticateWithCustomToken(myCustomToken) // firebase.auth()
The reason I want to use these is because I want to create a custom token so I can login into firebase with safe security rules. Without creating the token firebase won't let my app.js file read any data. I'm using a service named Algolia to run searches on my Firebase database and their tech team suggested I login that way:
Can you please get the .auth() object to appear on Both the firebase and firebase-admin modules so I can access the 2 methods I need? Look at the autocomplete results on line 14 and line 25 in the pictures below and you can see that .auth() doesn't appear in the list.


Steps to reproduce:
- created a folder, ran
npm init, downloaded the firebase service account json file, added the info from there that is needed to the app.js file, ran these below commands, and finally hooked everything up to a heroku instance
$ npm install —-save
$ npm install dotenv --save
$ npm install firebase-admin --save
$ npm install algoliasearch --save
$ npm install firebase --save
$ npm install -g firebase-tools
$ npm install -g npm-install-missing
