referring to Secure HTTP trigger for Cloud Functions for Firebase, as I'm signing into Firebase with a custom token using signInWithCustomToken, may I know where I can retrieve the Firebase ID Token so that I can make secure HTTP calls to Cloud Functions for Firebase? Thanks.
Asked
Active
Viewed 693 times
1
Community
- 1
- 1
user3240644
- 2,211
- 2
- 24
- 35
1 Answers
0
To retrieve the Firebase ID token:
With the user object returned by signInWithCustomToken
do
user.getToken().then(function(token) {console.log('Firebase ID token', token})
Detailed information can be found here: https://firebase.google.com/docs/reference/js/firebase.User
user3240644
- 2,211
- 2
- 24
- 35