Created
July 22, 2018 22:33
-
-
Save hiranya911/b1cbef827a97d8f7cbf8cecf278f94be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const admin = require('firebase-admin'); | |
# Load the service account JSON file | |
const serviceAccount = require('./service_account.json'); | |
# Inject into the Admin SDK as a credential | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment