Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions installations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ async function getInstallationId() {
async function getAuthenticationToken() {
try {
// [START get_auth_token]
const authToken = await firebase.installations()
const installationToken = await firebase.installations()
.getToken(/* forceRefresh */ true);
console.log(authToken);
console.log(installationToken);
// [END get_auth_token]
} catch (err) {
console.error('Unable to get auth token: ', err);
Expand All @@ -44,4 +44,4 @@ async function setOnIdChangeHandler() {
} catch (err) {
console.error('Unable to set ID change handler: ', err);
}
}
}