Created
May 3, 2017 10:06
-
-
Save 0x62/d3e7176387c897a9c7ad6087310ed798 to your computer and use it in GitHub Desktop.
This file contains 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'); | |
admin.initializeApp({ | |
databaseURL: process.env.FIREBASE_URI, | |
credential: admin.credential.cert({ | |
projectId: 'angular-stacker-123723', | |
clientEmail: 'firebase-adminsdk-xlnkn@angular-stacker-123723.iam.gserviceaccount.com', | |
privateKey: process.env.FIREBASE_KEY | |
}) | |
}) | |
admin.auth().getUser('pr8bDN4d36TORjAbW7b7hAgt6I53') | |
.then(profile => { | |
console.log(profile); | |
}) | |
.catch(err => { | |
console.log(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment